Skip to content

Commit

Permalink
refactor(): rename method
Browse files Browse the repository at this point in the history
rename EventSubscribersLoader private method
  • Loading branch information
thiagomini committed Jul 11, 2022
1 parent b434bd6 commit c382818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/event-subscribers.loader.ts
Expand Up @@ -78,7 +78,7 @@ export class EventSubscribersLoader
}

const { event, options } = eventListenerMetadata;
const listenerMethod = this.registerListenerMethodBasedOn(options);
const listenerMethod = this.getRegisterListenerMethodBasedOn(options);

if (isRequestScoped) {
this.registerRequestScopedListener({
Expand All @@ -98,7 +98,7 @@ export class EventSubscribersLoader
}
}

private registerListenerMethodBasedOn(options?: OnEventOptions) {
private getRegisterListenerMethodBasedOn(options?: OnEventOptions) {
return Boolean(options?.prependListener)
? this.eventEmitter.prependListener.bind(this.eventEmitter)
: this.eventEmitter.on.bind(this.eventEmitter);
Expand Down

0 comments on commit c382818

Please sign in to comment.