From e36644c7d9a4e1d544474084b667d896a95c5280 Mon Sep 17 00:00:00 2001 From: Mattia Codato Date: Tue, 30 Jun 2020 15:53:25 +0200 Subject: [PATCH] Remove unnecessary check --- lib/icinga/apiactions.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index 4e55637cf..b148f4bf7 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -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))