Merge pull request #1143 from nicolasnoble/compiler-opt

Small compiler optimization.
pull/1145/head
Vijay Pai 10 years ago
commit 997949494b
  1. 5
      src/compiler/cpp_plugin.cc

@ -58,6 +58,11 @@ class CppGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
return false;
}
if (file->service_count() == 0) {
// No services. Do nothing.
return true;
}
grpc_cpp_generator::Parameters generator_parameters;
if (!parameter.empty()) {

Loading…
Cancel
Save