@@ -62,7 +62,7 @@ const sendExited = (exitCode: number, forceExit: boolean, exitSignal?: NodeJS.Si
62
62
// best effort to intercept process exit
63
63
const beforeExitListener = ( exitCode : number ) => {
64
64
process . removeListener ( 'beforeExit' , beforeExitListener ) ;
65
- return sendExited ( exitCode , false )
65
+ return sendExited ( exitCode , false ) ;
66
66
} ;
67
67
process . addListener ( 'beforeExit' , beforeExitListener ) ;
68
68
const exitProcess = async ( forceExit : boolean , signal ?: NodeJS . Signals ) => {
@@ -137,7 +137,7 @@ class WebSocketSSHProxy {
137
137
138
138
private onExit ( ) {
139
139
const exitHandler = ( signal ?: NodeJS . Signals ) => {
140
- exitProcess ( false , signal )
140
+ exitProcess ( false , signal ) ;
141
141
} ;
142
142
process . on ( 'SIGINT' , exitHandler ) ;
143
143
process . on ( 'SIGTERM' , exitHandler ) ;
@@ -298,13 +298,13 @@ class WebSocketSSHProxy {
298
298
this . telemetryService . sendUserFlowStatus ( 'stale' , this . flow ) ;
299
299
socket . terminate ( ) ;
300
300
} , pingPeriod + 1000 ) ;
301
- }
301
+ } ;
302
302
const stopHearbeat = ( ) => {
303
- if ( pingTimeout != undefined ) {
303
+ if ( pingTimeout !== undefined ) {
304
304
clearTimeout ( pingTimeout ) ;
305
305
pingTimeout = undefined ;
306
306
}
307
- }
307
+ } ;
308
308
309
309
socket . on ( 'ping' , heartbeat ) ;
310
310
heartbeat ( ) ;
@@ -314,12 +314,12 @@ class WebSocketSSHProxy {
314
314
socket . onclose = ( e ) => {
315
315
stopHearbeat ( ) ;
316
316
wrappedOnClose ( e ) ;
317
- }
317
+ } ;
318
318
resolve ( websocketStream ) ;
319
- }
319
+ } ;
320
320
socket . onerror = ( e ) => {
321
321
reject ( e ) ;
322
- }
322
+ } ;
323
323
} ) ;
324
324
325
325
const config = new SshSessionConfiguration ( ) ;
0 commit comments