Skip to content

Commit

Permalink
Update parsing of caching mode
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Mar 3, 2024
1 parent 5a69f5c commit 684d554
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cpp/protobuf/protobuf_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ PbCachingMode protobuf_util::ParseCachingMode(const string &value)
string v = value;
ranges::replace(v, '-', '_');

string m;
ranges::transform(v, back_inserter(m), ::toupper);
if (PbCachingMode mode; PbCachingMode_Parse(m, &mode)) {
if (PbCachingMode mode; PbCachingMode_Parse(ToUpper(v), &mode)) {
return mode;
}

Expand Down

0 comments on commit 684d554

Please sign in to comment.