Skip to content

Commit bb9cf8e

Browse files
authored
fix: websocket typeof lint warning (#28)
1 parent c214df0 commit bb9cf8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

websocket.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if (typeof process !== 'undefined' && process) {
1212
module.exports = globalThis.WebSocket
1313
} else {
1414
// Node.js or Electron browser process
15+
// eslint-disable-next-line unicorn/no-typeof-undefined
1516
if (typeof globalThis.WebSocket === 'undefined') {
1617
// Fall back to ws
1718
module.exports = require('ws')

0 commit comments

Comments
 (0)