Remove superfluous else clause

This commit is contained in:
Benjamin Groeber 2020-06-23 11:41:15 +02:00 committed by Noah Hilverling
parent 317b20c48e
commit a11f3d0101

View File

@ -591,8 +591,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");