refactor: server/Config use empty() to check if args are empty

This commit is contained in:
sithlord48 2025-09-04 21:47:00 -04:00 committed by Nick Bolton
parent dc0db9d192
commit aedbffa809

View file

@ -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");
} }