Remove unnecessary check

This commit is contained in:
Mattia Codato 2020-06-30 15:53:25 +02:00
parent 15dac85583
commit 626080f610
1 changed files with 0 additions and 4 deletions

View File

@ -623,10 +623,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))