[icinga-checkins] icinga.org: icinga2/master: Remove redundant check for valid task object.

git at icinga.org git at icinga.org
Fri Mar 8 14:44:15 CET 2013


Module: icinga2
Branch: master
Commit: 8337795ff714d04443a7666faa7916641021fca7
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=8337795ff714d04443a7666faa7916641021fca7

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Mar  8 14:43:28 2013 +0100

Remove redundant check for valid task object.

---

 lib/icinga/notification.cpp |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp
index 11d92ef..3fbcf95 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);
 





More information about the icinga-checkins mailing list