Skip to content

Commit 4adda74

Browse files
committed
remove unexpected changes to -utils.ts
1 parent afa8088 commit 4adda74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/diagnostic/src/-utils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ export function assert(message: string, test: unknown): asserts test {
99

1010
export function getGlobal(): typeof globalThis {
1111
// prettier-ignore
12-
12+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1313
const g: typeof globalThis | null =
1414
typeof globalThis !== 'undefined' ? globalThis
1515
: typeof window !== 'undefined' ? window
16+
// @ts-expect-error global is node only
1617
: typeof global !== 'undefined' ? global
1718
: typeof self !== 'undefined' ? self
1819
: null;

0 commit comments

Comments
 (0)