diff --git a/javascript/net/grpc/web/grpc_generator.cc b/javascript/net/grpc/web/grpc_generator.cc index e736ddf09..f63552a13 100644 --- a/javascript/net/grpc/web/grpc_generator.cc +++ b/javascript/net/grpc/web/grpc_generator.cc @@ -97,7 +97,7 @@ string LowercaseFirstLetter(string s) { inline bool HasPrefixString(const string& str, const string& prefix) { return str.size() >= prefix.size() && - str.compare(0, prefix.size(), prefix) == 0; + str.compare(0, prefix.size(), prefix) == 0; } inline string StripPrefixString(const string& str, const string& prefix) { @@ -111,7 +111,7 @@ inline string StripPrefixString(const string& str, const string& prefix) { inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && - str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; + str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } inline string StripSuffixString(const string& str, const string& suffix) {