Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored and chitochi committed Mar 20, 2024
1 parent f9b9106 commit 889182d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion protobuf/lib/src/protobuf/field_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class _FieldSet {
/// Suitable for public API.
void _setFieldNullable(int tagNumber, Object? value) {
final meta = _meta;
var fi = _nonExtensionInfo(meta, tagNumber);
final fi = _nonExtensionInfo(meta, tagNumber);
if (fi == null) {
final extensions = _extensions;
if (extensions == null) {
Expand Down
4 changes: 2 additions & 2 deletions protoc_plugin/lib/src/message_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class MessageGenerator extends ProtobufContainer {

void generateFieldAccessorsMutators(
ProtobufField field, IndentingWriter out, List<int> memberFieldPath) {
final fieldTypeString = field.getDartType();
var fieldTypeString = field.getDartType();
final defaultExpr = field.getDefaultExpr();
final names = field.memberNames;

Expand Down Expand Up @@ -591,7 +591,7 @@ class MessageGenerator extends ProtobufContainer {
'${names.clearMethodName}() because it is repeated.';
}
} else {
final fastSetter = field.baseType.setter;
var fastSetter = field.baseType.setter;
_emitDeprecatedIf(field.isDeprecated, out);
_emitOverrideIf(field.overridesSetter, out);
_emitIndexAnnotation(field.number, out);
Expand Down

0 comments on commit 889182d

Please sign in to comment.