Skip to content

Commit 503ea25

Browse files
committed
make client type return more clear
1 parent d42fb00 commit 503ea25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/browser/src/integrations/linkederrors.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ export class LinkedErrors implements Integration {
4848
*/
4949
public setupOnce(): void {
5050
const client = getCurrentHub().getClient<BrowserClient>();
51-
const options = client && client.getOptions();
52-
if (!options) {
51+
if (!client) {
5352
return;
5453
}
5554
addGlobalEventProcessor((event: Event, hint?: EventHint) => {
5655
const self = getCurrentHub().getIntegration(LinkedErrors);
57-
return self ? _handler(options.stackParser, self._key, self._limit, event, hint) : event;
56+
return self ? _handler(client.getOptions().stackParser, self._key, self._limit, event, hint) : event;
5857
});
5958
}
6059
}

0 commit comments

Comments
 (0)