File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
client/src/connection/ssh Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -174,23 +174,19 @@ export class SSHSession extends Session {
174174
175175 s . on ( "data" , ( data ) => {
176176 fileContents += data . toString ( ) ;
177- } )
178- . on ( "close" , ( code ) => {
179- const rc : number = code ;
180-
181- if ( rc === 0 ) {
182- //Make sure that the html has a valid body
183- //TODO #185: should this be refactored into a shared location?
184- if ( fileContents . search ( '<*id="IDX*.+">' ) !== - 1 ) {
185- runResult . html5 = fileContents ;
186- runResult . title = l10n . t ( "Result" ) ;
187- }
177+ } ) . on ( "close" , ( code ) => {
178+ const rc : number = code ;
179+
180+ if ( rc === 0 ) {
181+ //Make sure that the html has a valid body
182+ //TODO #185: should this be refactored into a shared location?
183+ if ( fileContents . search ( '<*id="IDX*.+">' ) !== - 1 ) {
184+ runResult . html5 = fileContents ;
185+ runResult . title = l10n . t ( "Result" ) ;
188186 }
189- this . _resolve ?.( runResult ) ;
190- } )
191- . on ( "error" , ( err ) => {
192- console . log ( err ) ;
193- } ) ;
187+ }
188+ this . _resolve ?.( runResult ) ;
189+ } ) ;
194190 } ,
195191 ) ;
196192 } ;
You can’t perform that action at this time.
0 commit comments