Formatting cleanups for nested conditionals (#902)
* Formatting cleanups for nested conditionals * Transports
This commit is contained in:
@@ -5,6 +5,8 @@ import ws from 'websocket';
|
||||
|
||||
import { xglobal } from '@polkadot/x-global';
|
||||
|
||||
export const WebSocket = typeof xglobal.WebSocket === 'undefined'
|
||||
? ws.w3cwebsocket as unknown as typeof xglobal.WebSocket
|
||||
: xglobal.WebSocket;
|
||||
export const WebSocket = (
|
||||
typeof xglobal.WebSocket === 'undefined'
|
||||
? ws.w3cwebsocket as unknown as typeof xglobal.WebSocket
|
||||
: xglobal.WebSocket
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user