Skip to content
Permalink
Browse files

lib: remove some useless assignments

PR-URL: #23199
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information...
devsnek authored and rvagg committed Sep 25, 2018
1 parent 1a25e54 commit 9197b50b06edfe36e891eff08c641943cb5cb2e8
Showing with 2 additions and 6 deletions.
  1. +1 −1 lib/events.js
  2. +1 −1 lib/internal/readline.js
  3. +0 −4 lib/net.js
@@ -224,7 +224,7 @@ function _addListener(target, type, listener, prepend) {

if (existing === undefined) {
// Optimize the case of one listener. Don't need the extra array object.
existing = events[type] = listener;
events[type] = listener;
++target._eventsCount;
} else {
if (typeof existing === 'function') {
@@ -258,7 +258,7 @@ function* emitKeys(stream) {
s += (ch = yield);

if (ch >= '0' && ch <= '9') {
s += (ch = yield);
s += yield;
}
}

@@ -1071,10 +1071,6 @@ function afterConnect(status, handle, req, readable, writable) {
return;
}

// Update handle if it was wrapped
// TODO(indutny): assert that the handle is actually an ancestor of old one
handle = self._handle;

debug('afterConnect');

assert(self.connecting);

0 comments on commit 9197b50

Please sign in to comment.
You can’t perform that action at this time.