@@ -62,7 +62,7 @@ const sendExited = (exitCode: number, forceExit: boolean, exitSignal?: NodeJS.Si
6262// best effort to intercept process exit
6363const beforeExitListener = ( exitCode : number ) => {
6464 process . removeListener ( 'beforeExit' , beforeExitListener ) ;
65- return sendExited ( exitCode , false )
65+ return sendExited ( exitCode , false ) ;
6666} ;
6767process . addListener ( 'beforeExit' , beforeExitListener ) ;
6868const exitProcess = async ( forceExit : boolean , signal ?: NodeJS . Signals ) => {
@@ -137,7 +137,7 @@ class WebSocketSSHProxy {
137137
138138 private onExit ( ) {
139139 const exitHandler = ( signal ?: NodeJS . Signals ) => {
140- exitProcess ( false , signal )
140+ exitProcess ( false , signal ) ;
141141 } ;
142142 process . on ( 'SIGINT' , exitHandler ) ;
143143 process . on ( 'SIGTERM' , exitHandler ) ;
@@ -298,13 +298,13 @@ class WebSocketSSHProxy {
298298 this . telemetryService . sendUserFlowStatus ( 'stale' , this . flow ) ;
299299 socket . terminate ( ) ;
300300 } , pingPeriod + 1000 ) ;
301- }
301+ } ;
302302 const stopHearbeat = ( ) => {
303- if ( pingTimeout != undefined ) {
303+ if ( pingTimeout !== undefined ) {
304304 clearTimeout ( pingTimeout ) ;
305305 pingTimeout = undefined ;
306306 }
307- }
307+ } ;
308308
309309 socket . on ( 'ping' , heartbeat ) ;
310310 heartbeat ( ) ;
@@ -314,12 +314,12 @@ class WebSocketSSHProxy {
314314 socket . onclose = ( e ) => {
315315 stopHearbeat ( ) ;
316316 wrappedOnClose ( e ) ;
317- }
317+ } ;
318318 resolve ( websocketStream ) ;
319- }
319+ } ;
320320 socket . onerror = ( e ) => {
321321 reject ( e ) ;
322- }
322+ } ;
323323 } ) ;
324324
325325 const config = new SshSessionConfiguration ( ) ;
0 commit comments