remove extra guard
This commit is contained in:
1 parent
4e4d3c3971
commit
187a0fc3d4
1 file changed
-1
@@ -7,7 +7,6 @@ export class NotificationReactor implements IMonitorReactor {
|
|||||||
constructor(private notificationService: INotificationsService) {}
|
constructor(private notificationService: INotificationsService) {}
|
||||||
|
|
||||||
react = async (evaluation: MonitorEvaluation) => {
|
react = async (evaluation: MonitorEvaluation) => {
|
||||||
if (!evaluation.decision.shouldSendNotification) return;
|
|
||||||
await this.notificationService.handleNotifications(evaluation.monitor, evaluation.check, evaluation.decision);
|
await this.notificationService.handleNotifications(evaluation.monitor, evaluation.check, evaluation.decision);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user