Skip to content

Commit 4c6e91d

Browse files
committed
revert biome-changed check for isNode
1 parent dc3b2d3 commit 4c6e91d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/logger/src/isNode.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export const isNode = process?.versions && !!process.versions.node
1+
/** biome-ignore-all lint/complexity/useOptionalChain: this needs to carefully run in both node and browser environments */
2+
export const isNode = typeof process !== 'undefined' && process.versions && !!process.versions.node

0 commit comments

Comments
 (0)