Minor code clean up

This commit is contained in:
Stanley Cheung 2018-05-15 17:51:30 -07:00
parent e9cdfe0a4d
commit fc49d64b21
1 changed files with 2 additions and 2 deletions

View File

@ -308,9 +308,9 @@ class GrpcCodeGenerator : public CodeGenerator {
}
std::map<string, string> vars;
std::string package = file->package();
string package = file->package();
vars["package"] = package;
vars["package_dot"] = package.size() > 0 ? package + '.' : "";
vars["package_dot"] = package.empty() ? "" : package + '.';
if (mode == "binary") {
vars["mode"] = GetModeVar(Mode::OP);