Remove superfluous else clause

This commit is contained in:
Benjamin Groeber 2020-06-23 11:41:15 +02:00
parent 823fe34d24
commit 159e3d2945
1 changed files with 0 additions and 2 deletions

View File

@ -621,8 +621,6 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
command = "$event_command$";
} else if (command_type == "NotificationCommand") {
command = "$notification_command$";
} else {
return ApiActions::CreateResult(404, "Can't infer 'command' from command_type '" + command_type + "'");
}
} else {
command = HttpUtility::GetLastParameter(params, "command");