lib: remove some useless assignments

PR-URL: https://github.com/nodejs/node/pull/23199
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Gus Caplan authored and Ruben Bridgewater committed 2018-12-07 13:32:48 +01:00
1 parent d881b33028
commit 6c8a73de33
3 files changed
+2 -6

No files matched your search

+1 -1
View File
@@ -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') {
+1 -1
View File
@@ -258,7 +258,7 @@ function* emitKeys(stream) {
s += (ch = yield);
if (ch >= '0' && ch <= '9') {
s += (ch = yield);
s += yield;
}
}
-4
View File
@@ -1056,10 +1056,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);