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