Skip to content

Commit

Permalink
🚨 format
Browse files Browse the repository at this point in the history
  • Loading branch information
drieshooghe committed Nov 20, 2022
1 parent 5346b18 commit e0dab65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/aggregate-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export abstract class AggregateRoot {
}

const handler = this.getEventHandler(event);
handler && handler.call(this, event);
handler?.call(this, event);
}

private getEventHandler<T extends IEvent = IEvent>(event: T): Type<typeof AggregateRoot> | undefined {
Expand Down

0 comments on commit e0dab65

Please sign in to comment.