Skip to content

Commit 145bbc3

Browse files
committed
fixup: address feedback
1 parent 6e3b199 commit 145bbc3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/events.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)