Skip to content

Commit 9df2e34

Browse files
committed
simplify
1 parent 42bf5ba commit 9df2e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nestjs/src/integrations/sentry-nest-event-instrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class SentryNestEventInstrumentation extends InstrumentationBase {
8585
// from the reflector metadata as there is no information during execution which event triggered it
8686
if (Reflect.getMetadataKeys(descriptor.value).includes('EVENT_LISTENER_METADATA')) {
8787
const eventData = Reflect.getMetadata('EVENT_LISTENER_METADATA', descriptor.value);
88-
if (Array.isArray(eventData) && eventData.length > 0) {
88+
if (Array.isArray(eventData)) {
8989
eventName = eventData
9090
.map((data: unknown) => {
9191
if (data && typeof data === 'object' && 'event' in data && data.event) {

0 commit comments

Comments
 (0)