Merge pull request #575 from vmax/node-plugin-create-file-even-without-services

Generate JS file even if no services are defined in proto file; fix #574
This commit is contained in:
Nicolas Noble 2018-10-17 16:02:29 -07:00 committed by GitHub
commit 568203cc25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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");