Skip to content

Commit

Permalink
Make EnumGenerator.className non nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Dec 29, 2023
1 parent 269e708 commit 7496ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protoc_plugin/lib/src/enum_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EnumGenerator extends ProtobufContainer {
final ProtobufContainer? parent;

@override
final String? classname;
final String classname;

@override
final String fullName;
Expand Down Expand Up @@ -110,7 +110,7 @@ class EnumGenerator extends ProtobufContainer {
'class $classname extends $protobufImportPrefix.ProtobufEnum {',
'}\n', [
NamedLocation(
name: classname!, fieldPathSegment: fieldPath, start: 'class '.length)
name: classname, fieldPathSegment: fieldPath, start: 'class '.length)
], () {
// -----------------------------------------------------------------
// Define enum types.
Expand Down

0 comments on commit 7496ca5

Please sign in to comment.