File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -328,18 +328,18 @@ EventEmitter.prototype.removeListener =
328328 if ( position < 0 )
329329 return this ;
330330
331- if ( list . length === 2 )
331+ if ( list . length === 2 ) {
332332 events [ type ] = list [ position ? 0 : 1 ] ;
333- else if ( list . emitting ) {
333+ } else if ( list . emitting ) {
334334 const { warned } = list ;
335335 events [ type ] = sliceOne ( list , position ) ;
336336 if ( warned )
337337 events [ type ] . warned = true ;
338- } else if ( position === 0 )
338+ } else if ( position === 0 ) {
339339 list . shift ( ) ;
340- else if ( position === list . length - 1 )
340+ } else if ( position === list . length - 1 ) {
341341 list . pop ( ) ;
342- else {
342+ } else {
343343 if ( spliceOne === undefined )
344344 spliceOne = require ( 'internal/util' ) . spliceOne ;
345345 spliceOne ( list , position ) ;
@@ -464,8 +464,8 @@ EventEmitter.prototype.eventNames = function eventNames() {
464464 }
465465 }
466466
467- // We must have Symbols to fill in
468467 if ( j < count ) {
468+ // We must have Symbols to fill in
469469 const symbols = Object . getOwnPropertySymbols ( events ) ;
470470 for ( var i = 0 ; i < symbols . length ; ++ i ) {
471471 key = symbols [ i ] ;
You can’t perform that action at this time.
0 commit comments