Refactors out notify conditions. Closes #1083
This commit is contained in:
@@ -50,9 +50,7 @@ class UpdateIncidentCommandHandler
|
||||
}
|
||||
|
||||
// Notify subscribers.
|
||||
if ($command->notify) {
|
||||
event(new IncidentWasUpdatedEvent($incident));
|
||||
}
|
||||
event(new IncidentWasUpdatedEvent($incident));
|
||||
|
||||
return $incident;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user