Skip to content
Snippets Groups Projects
Commit d48a969d authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

Small compiler optimization.

parent a8c7c201
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,11 @@ class CppGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { ...@@ -58,6 +58,11 @@ class CppGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
return false; return false;
} }
if (file->service_count() == 0) {
// No services. Do nothing.
return true;
}
grpc_cpp_generator::Parameters generator_parameters; grpc_cpp_generator::Parameters generator_parameters;
if (!parameter.empty()) { if (!parameter.empty()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment