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; generate_server = false;
} else if (options[i].first == "internal_access") { } else if (options[i].first == "internal_access") {
internal_access = true; internal_access = true;
} } else if (options[i].first == "file_suffix") {
if (options[i].first == "file_suffix") {
file_suffix = options[i].second; file_suffix = options[i].second;
} else { } else {
*error = "Unknown generator option: " + options[i].first; *error = "Unknown generator option: " + options[i].first;

Loading…
Cancel
Save