Skip to content

Commit

Permalink
More simplifications, add an argument type (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Jun 15, 2023
1 parent 831003b commit 6f3fc90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protobuf/lib/src/protobuf/unknown_field_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ class UnknownFieldSet {
}

void writeToCodedBufferWriter(CodedBufferWriter output) {
for (final key in _fields.keys) {
_fields[key]!.writeTo(key, output);
for (final entry in _fields.entries) {
entry.value.writeTo(entry.key, output);
}
}

Expand Down Expand Up @@ -279,7 +279,7 @@ class UnknownFieldSetField {
];

void writeTo(int fieldNumber, CodedBufferWriter output) {
void write(type, value) {
void write(int type, value) {
output.writeField(fieldNumber, type, value);
}

Expand Down

0 comments on commit 6f3fc90

Please sign in to comment.