Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Aug 14, 2023
1 parent b1c48b3 commit 5dd3621
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions protoc_plugin/lib/src/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ class GenerateConstructorArgumentsParser implements SingleOptionParser {
@override
void parse(String name, String? value, OnError onError) {
if (value != null) {
onError(
'Invalid constructor_args option. No value expected.');
onError('Invalid constructor_args option. No value expected.');
return;
}
generateConstructorArguments = true;
Expand All @@ -126,8 +125,7 @@ GenerationOptions? parseGenerationOptions(

final generateConstructorArgumentsParser =
GenerateConstructorArgumentsParser();
newParsers['constructor_args'] =
generateConstructorArgumentsParser;
newParsers['constructor_args'] = generateConstructorArgumentsParser;

if (genericOptionsParser(request, response, newParsers)) {
return GenerationOptions(
Expand Down

0 comments on commit 5dd3621

Please sign in to comment.