ApiEvents: Fix AcknowledgementCleared code quality

This commit is contained in:
Michael Friedrich 2020-02-06 13:03:04 +01:00
parent 572c912c96
commit f961370e36
1 changed files with 1 additions and 2 deletions

View File

@ -245,13 +245,12 @@ void ApiEvents::AcknowledgementClearedHandler(const Checkable::Ptr& checkable, c
result->Set("state", service ? static_cast<int>(service->GetState()) : static_cast<int>(host->GetState()));
result->Set("state_type", checkable->GetStateType());
result->Set("acknowledgement_type", AcknowledgementNone);
for (const EventQueue::Ptr& queue : queues) {
queue->ProcessEvent(result);
}
result->Set("acknowledgement_type", AcknowledgementNone);
inboxes.Push(std::move(result));
}