mirror of https://github.com/Icinga/icinga2.git
Remove superfluous else clause
This commit is contained in:
parent
823fe34d24
commit
159e3d2945
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue