@@ -458,7 +458,7 @@ Interface.prototype._tabComplete = function() {
458
458
459
459
// this = Interface instance
460
460
function handleGroup ( self , group , width , maxColumns ) {
461
- if ( group . length == 0 ) {
461
+ if ( group . length === 0 ) {
462
462
return ;
463
463
}
464
464
var minRows = Math . ceil ( group . length / maxColumns ) ;
@@ -483,14 +483,14 @@ function handleGroup(self, group, width, maxColumns) {
483
483
}
484
484
485
485
function commonPrefix ( strings ) {
486
- if ( ! strings || strings . length == 0 ) {
486
+ if ( ! strings || strings . length === 0 ) {
487
487
return '' ;
488
488
}
489
489
var sorted = strings . slice ( ) . sort ( ) ;
490
490
var min = sorted [ 0 ] ;
491
491
var max = sorted [ sorted . length - 1 ] ;
492
492
for ( var i = 0 , len = min . length ; i < len ; i ++ ) {
493
- if ( min [ i ] != max [ i ] ) {
493
+ if ( min [ i ] !== max [ i ] ) {
494
494
return min . slice ( 0 , i ) ;
495
495
}
496
496
}
@@ -703,7 +703,7 @@ Interface.prototype._ttyWrite = function(s, key) {
703
703
key = key || { } ;
704
704
705
705
// Ignore escape key - Fixes #2876
706
- if ( key . name == 'escape' ) return ;
706
+ if ( key . name === 'escape' ) return ;
707
707
708
708
if ( key . ctrl && key . shift ) {
709
709
/* Control and shift pressed */
@@ -784,7 +784,7 @@ Interface.prototype._ttyWrite = function(s, key) {
784
784
break ;
785
785
786
786
case 'z' :
787
- if ( process . platform == 'win32' ) break ;
787
+ if ( process . platform === 'win32' ) break ;
788
788
if ( this . listenerCount ( 'SIGTSTP' ) > 0 ) {
789
789
this . emit ( 'SIGTSTP' ) ;
790
790
} else {
@@ -995,7 +995,7 @@ function emitKeypressEvents(stream, iface) {
995
995
}
996
996
997
997
function onNewListener ( event ) {
998
- if ( event == 'keypress' ) {
998
+ if ( event === 'keypress' ) {
999
999
stream . on ( 'data' , onData ) ;
1000
1000
stream . removeListener ( 'newListener' , onNewListener ) ;
1001
1001
}
0 commit comments