File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 11import WebSocket = require( 'isomorphic-ws' ) ;
22import querystring = require( 'querystring' ) ;
33import stream = require( 'stream' ) ;
4- import { isUndefined } from 'util' ;
54
65import { KubeConfig } from './config' ;
76import { WebSocketHandler , WebSocketInterface } from './web-socket-handler' ;
@@ -13,7 +12,7 @@ export class PortForward {
1312 // handler is a parameter really only for injecting for testing.
1413 constructor ( config : KubeConfig , disconnectOnErr ?: boolean , handler ?: WebSocketInterface ) {
1514 this . handler = handler || new WebSocketHandler ( config ) ;
16- this . disconnectOnErr = isUndefined ( disconnectOnErr ) ? true : disconnectOnErr ;
15+ this . disconnectOnErr = disconnectOnErr === undefined ? true : disconnectOnErr ;
1716 }
1817
1918 // TODO: support multiple ports for real...
You can’t perform that action at this time.
0 commit comments