@@ -458,7 +458,7 @@ Interface.prototype._tabComplete = function() {
458458
459459// this = Interface instance
460460function handleGroup ( self , group , width , maxColumns ) {
461- if ( group . length == 0 ) {
461+ if ( group . length === 0 ) {
462462 return ;
463463 }
464464 var minRows = Math . ceil ( group . length / maxColumns ) ;
@@ -483,14 +483,14 @@ function handleGroup(self, group, width, maxColumns) {
483483}
484484
485485function commonPrefix ( strings ) {
486- if ( ! strings || strings . length == 0 ) {
486+ if ( ! strings || strings . length === 0 ) {
487487 return '' ;
488488 }
489489 var sorted = strings . slice ( ) . sort ( ) ;
490490 var min = sorted [ 0 ] ;
491491 var max = sorted [ sorted . length - 1 ] ;
492492 for ( var i = 0 , len = min . length ; i < len ; i ++ ) {
493- if ( min [ i ] != max [ i ] ) {
493+ if ( min [ i ] !== max [ i ] ) {
494494 return min . slice ( 0 , i ) ;
495495 }
496496 }
@@ -703,7 +703,7 @@ Interface.prototype._ttyWrite = function(s, key) {
703703 key = key || { } ;
704704
705705 // Ignore escape key - Fixes #2876
706- if ( key . name == 'escape' ) return ;
706+ if ( key . name === 'escape' ) return ;
707707
708708 if ( key . ctrl && key . shift ) {
709709 /* Control and shift pressed */
@@ -784,7 +784,7 @@ Interface.prototype._ttyWrite = function(s, key) {
784784 break ;
785785
786786 case 'z' :
787- if ( process . platform == 'win32' ) break ;
787+ if ( process . platform === 'win32' ) break ;
788788 if ( this . listenerCount ( 'SIGTSTP' ) > 0 ) {
789789 this . emit ( 'SIGTSTP' ) ;
790790 } else {
@@ -995,7 +995,7 @@ function emitKeypressEvents(stream, iface) {
995995 }
996996
997997 function onNewListener ( event ) {
998- if ( event == 'keypress' ) {
998+ if ( event === 'keypress' ) {
999999 stream . on ( 'data' , onData ) ;
10001000 stream . removeListener ( 'newListener' , onNewListener ) ;
10011001 }
0 commit comments