Skip to content

Commit

Permalink
style: minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jun 12, 2023
1 parent 090685a commit 07a20a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/events-metadata.accessor.ts
Expand Up @@ -11,7 +11,9 @@ export class EventsMetadataAccessor {
target: Type<unknown>,
): OnEventMetadata[] | undefined {
const metadata = this.reflector.get(EVENT_LISTENER_METADATA, target);
if (!metadata) return undefined;
if (!metadata) {
return undefined;
}
return Array.isArray(metadata) ? metadata : [metadata];
}
}

0 comments on commit 07a20a4

Please sign in to comment.