diff options
Diffstat (limited to 'src/compiler/go_plugin.cc')
-rw-r--r-- | src/compiler/go_plugin.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/go_plugin.cc b/src/compiler/go_plugin.cc index f941840815..c81612c0ab 100644 --- a/src/compiler/go_plugin.cc +++ b/src/compiler/go_plugin.cc @@ -61,8 +61,8 @@ class GoGrpcGenerator : public google::protobuf::compiler::CodeGenerator { string file_name; if (file->name().size() > 6 && file->name().find_last_of(".proto") == file->name().size() - 1) { - file_name = file->name().substr(0, file->name().size() - 6) + - "_grpc.pb.go"; + file_name = + file->name().substr(0, file->name().size() - 6) + "_grpc.pb.go"; } else { *error = "Invalid proto file name. Proto file must end with .proto"; return false; |