From 8337795ff714d04443a7666faa7916641021fca7 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 8 Mar 2013 14:43:28 +0100 Subject: [PATCH] Remove redundant check for valid task object. --- lib/icinga/notification.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index 11d92ef3c..3fbcf9508 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -216,12 +216,6 @@ void Notification::BeginExecuteNotificationHelper(const Dictionary::Ptr& notific ScriptTask::Ptr task; task = MakeMethodTask("notify", arguments); - if (!task) { - Logger::Write(LogWarning, "icinga", "Notification object '" + GetName() + "' doesn't have a 'notify' method."); - - return; - } - { ObjectLock olock(this); -- 2.40.0