From 2ea6aefd4b2fb14dee032197bcf969f24c525c3c Mon Sep 17 00:00:00 2001 From: apolcyn Date: Fri, 6 Aug 2021 10:06:44 -0700 Subject: [PATCH] Fix C# protoc plugin argument parsing (#26896) --- src/compiler/csharp_plugin.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/csharp_plugin.cc b/src/compiler/csharp_plugin.cc index dcf800acd41..f63bb4de555 100644 --- a/src/compiler/csharp_plugin.cc +++ b/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;