mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
d881b33028
commit
6c8a73de33
3 files changed
+2
-6
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user