Skip to content

Commit 3bdd030

Browse files
author
Luca Forstner
committed
Try fix error?
1 parent 4234a24 commit 3bdd030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/global.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export function getGlobalObject<T>(): T & SentryGlobal {
5757
* @returns the singleton
5858
*/
5959
export function getGlobalSingleton<T>(name: keyof SentryGlobal['__SENTRY__'], creator: () => T, obj?: unknown): T {
60-
const global = (obj || getGlobalObject()) as SentryGlobal;
61-
const __SENTRY__ = (global.__SENTRY__ = global.__SENTRY__ || {});
60+
const globalObject = (obj || getGlobalObject()) as SentryGlobal;
61+
const __SENTRY__ = (globalObject.__SENTRY__ = globalObject.__SENTRY__ || {});
6262
const singleton = __SENTRY__[name] || (__SENTRY__[name] = creator());
6363
return singleton;
6464
}

0 commit comments

Comments
 (0)