Skip to content

Commit 8baec64

Browse files
committed
chore(lazer-sdk-js): more PR feedback changes about brevity
1 parent 7aebe1f commit 8baec64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lazer/sdk/js/src/util/env-util.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ const g = globalThis as Partial<{
1010
* @returns true if in a worker of some kind, false if otherwise
1111
*/
1212
export function envIsServiceOrWebWorker() {
13-
const possiblyInAWorker =
14-
typeof WorkerGlobalScope !== "undefined" && g.self !== undefined;
15-
return possiblyInAWorker && g.self instanceof WorkerGlobalScope;
13+
return typeof WorkerGlobalScope !== "undefined" && g.self instanceof WorkerGlobalScope;
1614
}
1715

1816
/**

0 commit comments

Comments
 (0)