From 159e3d294578057f22c1ba81c8c94074e706ed04 Mon Sep 17 00:00:00 2001 From: Benjamin Groeber Date: Tue, 23 Jun 2020 11:41:15 +0200 Subject: [PATCH] Remove superfluous else clause --- lib/icinga/apiactions.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index 01f3b7a59..493a8db6d 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -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");