Skip to content

Commit 6370650

Browse files
committed
Avoid casting to any in tests
1 parent c3b9a0c commit 6370650

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/node/test/helpers/mockSdkInit.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ export function getSpanProcessor(): SentrySpanProcessor | undefined {
5555
}
5656

5757
// Access the span processors from the provider via _activeSpanProcessor
58-
// Casted as any because _activeSpanProcessor is marked as readonly
59-
const multiSpanProcessor = (provider as any)._activeSpanProcessor as
58+
const multiSpanProcessor = provider?.['_activeSpanProcessor'] as
6059
| (SpanProcessor & { _spanProcessors?: SpanProcessor[] })
6160
| undefined;
6261

0 commit comments

Comments
 (0)