Skip to content

Commit

Permalink
Fix SonarQube issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 6, 2023
1 parent 70dcb4d commit d0eed9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/shared/protobuf_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ void protobuf_util::SetCommandParams(PbCommand& command, const string& params)
string file_pattern;
string operations;

const auto& components = Split(params, ':', 3);
switch (components.size()) {
switch (const auto& components = Split(params, ':', 3); components.size()) {
case 3:
operations = components[2];
[[fallthrough]];
Expand Down

0 comments on commit d0eed9c

Please sign in to comment.