Fix C# protoc plugin argument parsing (#26896)

pull/26928/head
apolcyn 3 years ago committed by GitHub
parent f5596767de
commit 2ea6aefd4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/compiler/csharp_plugin.cc

@ -53,8 +53,7 @@ class CSharpGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
generate_server = false;
} else if (options[i].first == "internal_access") {
internal_access = true;
}
if (options[i].first == "file_suffix") {
} else if (options[i].first == "file_suffix") {
file_suffix = options[i].second;
} else {
*error = "Unknown generator option: " + options[i].first;

Loading…
Cancel
Save