mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Remove redundant check for valid task object.
This commit is contained in:
parent
13436cb536
commit
8337795ff7
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user