refactor: server/Config use empty() to check if args are empty
This commit is contained in:
parent
dc0db9d192
commit
aedbffa809
1 changed files with 1 additions and 1 deletions
|
|
@ -1063,7 +1063,7 @@ void Config::parseAction(
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (name == "switchToNextScreen") {
|
else if (name == "switchToNextScreen") {
|
||||||
if (args.size() != 0) {
|
if (!args.empty()) {
|
||||||
throw ServerConfigReadException(s, "syntax for action: switchToNextScreen");
|
throw ServerConfigReadException(s, "syntax for action: switchToNextScreen");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue