@@ -71,8 +71,7 @@ export class MI2 extends EventEmitter implements IBackend {
7171 this . emit ( "debug-ready" ) ;
7272 resolve ( ) ;
7373 } , reject ) ;
74- }
75- else {
74+ } else {
7675 if ( separateConsole !== undefined ) {
7776 linuxTerm . spawnTerminalEmulator ( separateConsole ) . then ( tty => {
7877 promises . push ( this . sendCommand ( "inferior-tty-set " + tty ) ) ;
@@ -81,8 +80,7 @@ export class MI2 extends EventEmitter implements IBackend {
8180 resolve ( ) ;
8281 } , reject ) ;
8382 } ) ;
84- }
85- else {
83+ } else {
8684 Promise . all ( promises ) . then ( ( ) => {
8785 this . emit ( "debug-ready" ) ;
8886 resolve ( ) ;
@@ -187,8 +185,7 @@ export class MI2 extends EventEmitter implements IBackend {
187185 if ( ssh ) {
188186 if ( ! path . isAbsolute ( target ) )
189187 target = path . join ( cwd , target ) ;
190- }
191- else {
188+ } else {
192189 if ( ! nativePath . isAbsolute ( target ) )
193190 target = nativePath . join ( cwd , target ) ;
194191 }
@@ -318,8 +315,7 @@ export class MI2 extends EventEmitter implements IBackend {
318315 if ( couldBeOutput ( line ) ) {
319316 if ( ! gdbMatch . exec ( line ) )
320317 this . log ( "stdout" , line ) ;
321- }
322- else {
318+ } else {
323319 const parsed = parseMI ( line ) ;
324320 if ( this . debugOutput )
325321 this . log ( "log" , "GDB -> App: " + JSON . stringify ( parsed ) ) ;
@@ -360,8 +356,7 @@ export class MI2 extends EventEmitter implements IBackend {
360356 else if ( reason == "exited" ) { // exit with error code != 0
361357 this . log ( "stderr" , "Program exited with code " + parsed . record ( "exit-code" ) ) ;
362358 this . emit ( "exited-normally" , parsed ) ;
363- }
364- else {
359+ } else {
365360 this . log ( "console" , "Not implemented stop reason (assuming exception): " + reason ) ;
366361 this . emit ( "stopped" , parsed ) ;
367362 }
@@ -410,8 +405,7 @@ export class MI2 extends EventEmitter implements IBackend {
410405 clearTimeout ( to ) ;
411406 } ) ;
412407 this . sendRaw ( "-gdb-exit" ) ;
413- }
414- else {
408+ } else {
415409 const proc = this . process ;
416410 const to = setTimeout ( ( ) => {
417411 process . kill ( - proc . pid ) ;
@@ -521,8 +515,7 @@ export class MI2 extends EventEmitter implements IBackend {
521515 if ( match . length != breakpoint . countCondition . length ) {
522516 this . log ( "stderr" , "Unsupported break count expression: '" + breakpoint . countCondition + "'. Only supports 'X' for breaking once after X times or '>X' for ignoring the first X breaks" ) ;
523517 location += "-t " ;
524- }
525- else if ( parseInt ( match ) != 0 )
518+ } else if ( parseInt ( match ) != 0 )
526519 location += "-t -i " + parseInt ( match ) + " " ;
527520 }
528521 }
@@ -547,13 +540,11 @@ export class MI2 extends EventEmitter implements IBackend {
547540 resolve ( [ false , undefined ] ) ;
548541 }
549542 } , reject ) ;
550- }
551- else {
543+ } else {
552544 this . breakpoints . set ( newBrk , bkptNum ) ;
553545 resolve ( [ true , newBrk ] ) ;
554546 }
555- }
556- else {
547+ } else {
557548 reject ( result ) ;
558549 }
559550 } , reject ) ;
@@ -570,8 +561,7 @@ export class MI2 extends EventEmitter implements IBackend {
570561 if ( result . resultRecords . resultClass == "done" ) {
571562 this . breakpoints . delete ( breakpoint ) ;
572563 resolve ( true ) ;
573- }
574- else resolve ( false ) ;
564+ } else resolve ( false ) ;
575565 } ) ;
576566 } ) ;
577567 }
@@ -584,8 +574,7 @@ export class MI2 extends EventEmitter implements IBackend {
584574 if ( result . resultRecords . resultClass == "done" ) {
585575 this . breakpoints . clear ( ) ;
586576 resolve ( true ) ;
587- }
588- else resolve ( false ) ;
577+ } else resolve ( false ) ;
589578 } , ( ) => {
590579 resolve ( false ) ;
591580 } ) ;
@@ -739,8 +728,7 @@ export class MI2 extends EventEmitter implements IBackend {
739728 sendUserInput ( command : string , threadId : number = 0 , frameLevel : number = 0 ) : Thenable < any > {
740729 if ( command . startsWith ( "-" ) ) {
741730 return this . sendCommand ( command . substr ( 1 ) ) ;
742- }
743- else {
731+ } else {
744732 return this . sendCliCommand ( command , threadId , frameLevel ) ;
745733 }
746734 }
@@ -771,11 +759,9 @@ export class MI2 extends EventEmitter implements IBackend {
771759 if ( suppressFailure ) {
772760 this . log ( "stderr" , `WARNING: Error executing command '${ command } '` ) ;
773761 resolve ( node ) ;
774- }
775- else
762+ } else
776763 reject ( new MIError ( node . result ( "msg" ) || "Internal error" , command ) ) ;
777- }
778- else
764+ } else
779765 resolve ( node ) ;
780766 } ;
781767 this . sendRaw ( sel + "-" + command ) ;
0 commit comments