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 1
1
import WebSocket = require( 'isomorphic-ws' ) ;
2
2
import querystring = require( 'querystring' ) ;
3
3
import stream = require( 'stream' ) ;
4
- import { isUndefined } from 'util' ;
5
4
6
5
import { KubeConfig } from './config' ;
7
6
import { WebSocketHandler , WebSocketInterface } from './web-socket-handler' ;
@@ -13,7 +12,7 @@ export class PortForward {
13
12
// handler is a parameter really only for injecting for testing.
14
13
constructor ( config : KubeConfig , disconnectOnErr ?: boolean , handler ?: WebSocketInterface ) {
15
14
this . handler = handler || new WebSocketHandler ( config ) ;
16
- this . disconnectOnErr = isUndefined ( disconnectOnErr ) ? true : disconnectOnErr ;
15
+ this . disconnectOnErr = disconnectOnErr === undefined ? true : disconnectOnErr ;
17
16
}
18
17
19
18
// TODO: support multiple ports for real...
You can’t perform that action at this time.
0 commit comments