Skip to content

Commit 8790bfc

Browse files
committed
chore: remove unnecessary check for handlers
1 parent adf102d commit 8790bfc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/live-status-gateway/src/collections/notifications/notificationsHandler.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ export class NotificationsHandler extends PublicationCollection<
4646
this._rundownNotificationsHandler =
4747
handlers.rundownNotificationsHandler as unknown as RundownNotificationsHandler
4848

49-
if (this._playlistNotificationsHandler) {
50-
this._playlistNotificationsHandler.subscribe(this.onSourceUpdated)
51-
}
52-
if (this._rundownNotificationsHandler) {
53-
this._rundownNotificationsHandler.subscribe(this.onSourceUpdated)
54-
}
49+
this._playlistNotificationsHandler.subscribe(this.onSourceUpdated)
50+
this._rundownNotificationsHandler.subscribe(this.onSourceUpdated)
5551
}
5652

5753
protected changed(): void {

0 commit comments

Comments
 (0)