@@ -424,7 +424,7 @@ Interface.prototype._tabComplete = function() {
424
424
425
425
// this = Interface instance
426
426
function handleGroup ( self , group , width , maxColumns ) {
427
- if ( group . length == 0 ) {
427
+ if ( group . length === 0 ) {
428
428
return ;
429
429
}
430
430
var minRows = Math . ceil ( group . length / maxColumns ) ;
@@ -449,14 +449,14 @@ function handleGroup(self, group, width, maxColumns) {
449
449
}
450
450
451
451
function commonPrefix ( strings ) {
452
- if ( ! strings || strings . length == 0 ) {
452
+ if ( ! strings || strings . length === 0 ) {
453
453
return '' ;
454
454
}
455
455
var sorted = strings . slice ( ) . sort ( ) ;
456
456
var min = sorted [ 0 ] ;
457
457
var max = sorted [ sorted . length - 1 ] ;
458
458
for ( var i = 0 , len = min . length ; i < len ; i ++ ) {
459
- if ( min [ i ] != max [ i ] ) {
459
+ if ( min [ i ] !== max [ i ] ) {
460
460
return min . slice ( 0 , i ) ;
461
461
}
462
462
}
@@ -669,7 +669,7 @@ Interface.prototype._ttyWrite = function(s, key) {
669
669
key = key || { } ;
670
670
671
671
// Ignore escape key - Fixes #2876
672
- if ( key . name == 'escape' ) return ;
672
+ if ( key . name === 'escape' ) return ;
673
673
674
674
if ( key . ctrl && key . shift ) {
675
675
/* Control and shift pressed */
@@ -750,7 +750,7 @@ Interface.prototype._ttyWrite = function(s, key) {
750
750
break ;
751
751
752
752
case 'z' :
753
- if ( process . platform == 'win32' ) break ;
753
+ if ( process . platform === 'win32' ) break ;
754
754
if ( this . listenerCount ( 'SIGTSTP' ) > 0 ) {
755
755
this . emit ( 'SIGTSTP' ) ;
756
756
} else {
@@ -955,7 +955,7 @@ function emitKeypressEvents(stream, iface) {
955
955
}
956
956
957
957
function onNewListener ( event ) {
958
- if ( event == 'keypress' ) {
958
+ if ( event === 'keypress' ) {
959
959
stream . on ( 'data' , onData ) ;
960
960
stream . removeListener ( 'newListener' , onNewListener ) ;
961
961
}
0 commit comments