mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-22 17:28:02 +02:00
Remove unnecessary check
This commit is contained in:
parent
a7a5b94a6f
commit
e36644c7d9
@ -593,10 +593,6 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
||||
MacroProcessor::EscapeCallback(), nullptr, false
|
||||
);
|
||||
|
||||
/* Check if resolved_command is not empty */
|
||||
if (resolved_command.IsEmpty())
|
||||
return ApiActions::CreateResult(400, "Command must not be empty.");
|
||||
|
||||
/* Check if resolved_command exists and it is of type command_type */
|
||||
if (command_type == "CheckCommand") {
|
||||
if (!CheckCommand::GetByName(resolved_command))
|
||||
|
Loading…
x
Reference in New Issue
Block a user