Skip to content

Commit e4fc16a

Browse files
committed
ref: make hasTracingEnabled a one-liner
1 parent b2ba0ef commit e4fc16a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/tracing/src/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ export function hasTracingEnabled(
1919
.getClient()
2020
?.getOptions(),
2121
): boolean {
22-
if (!options) {
23-
return false;
24-
}
25-
return 'tracesSampleRate' in options || 'tracesSampler' in options;
22+
return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options);
2623
}
2724

2825
/**

0 commit comments

Comments
 (0)