refactor: server/Config use empty() to check if args are empty
This commit is contained in:
@ -1063,7 +1063,7 @@ void Config::parseAction(
|
||||
}
|
||||
|
||||
else if (name == "switchToNextScreen") {
|
||||
if (args.size() != 0) {
|
||||
if (!args.empty()) {
|
||||
throw ServerConfigReadException(s, "syntax for action: switchToNextScreen");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user