mirror of https://github.com/grpc/grpc-node.git
Generate JS file even if no services are defined in proto file; fix #574
This commit is contained in:
parent
fae76dec4a
commit
0aedb0768c
|
@ -252,6 +252,7 @@ grpc::string GenerateFile(const FileDescriptor* file,
|
|||
Printer out(&output_stream, '$');
|
||||
|
||||
if (file->service_count() == 0) {
|
||||
output = "// GENERATED CODE -- NO SERVICES IN PROTO";
|
||||
return output;
|
||||
}
|
||||
out.Print("// GENERATED CODE -- DO NOT EDIT!\n\n");
|
||||
|
|
Loading…
Reference in New Issue