]> granicus.if.org Git - icinga2/commitdiff
Remove redundant check for valid task object.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 8 Mar 2013 13:43:28 +0000 (14:43 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 8 Mar 2013 13:43:28 +0000 (14:43 +0100)
lib/icinga/notification.cpp

index 11d92ef3c5c4f7411fc72346691dad04159de9e3..3fbcf9508322999dbbc22095a79c5045d076f797 100644 (file)
@@ -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);