-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve code style in cluster #2272
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Quality Gate passedIssues Measures |
std::array subcommands = {"setnodes", "setnodeid", "setslot", "import", "reset"}; | ||
|
||
return std::any_of(std::begin(subcommands), std::end(subcommands), | ||
[&subcommand](const std::string &val) { return util::EqualICase(val, subcommand); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter type should be string_view
or auto
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry I will fix it
I haven't modified any specific logic. Only tidy codes to make Sonarcloud happy.
https://sonarcloud.io/project/issues?fileUuids=AYuMX0sBEoUnDAVyI8Dx&resolved=false&id=apache_kvrocks