mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 16:57:29 +00:00
Go related style fixes.
Change-Id: Ie854ace69a21ef685e1ade5584f9d9ce4e8b41f1
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
03ee3db240
commit
9ec9303abb
@@ -48,7 +48,7 @@ namespace grpc_go_generator {
|
||||
|
||||
// Returns string with first letter to lowerCase
|
||||
grpc::string unexportName(grpc::string s) {
|
||||
if (s.size() <= 0)
|
||||
if (s.empty())
|
||||
return s;
|
||||
s[0] = std::tolower(s[0]);
|
||||
return s;
|
||||
@@ -56,7 +56,7 @@ grpc::string unexportName(grpc::string s) {
|
||||
|
||||
// Returns string with first letter to uppercase
|
||||
grpc::string exportName(grpc::string s) {
|
||||
if (s.size() <= 0)
|
||||
if (s.empty())
|
||||
return s;
|
||||
s[0] = std::toupper(s[0]);
|
||||
return s;
|
||||
@@ -434,4 +434,4 @@ grpc::string GenerateServiceSource(grpc_generator::File *file,
|
||||
GenerateService(service, printer, vars);
|
||||
return out;
|
||||
}
|
||||
}// Namespace grpc_go_generator
|
||||
}// Namespace grpc_go_generator
|
||||
|
||||
Reference in New Issue
Block a user