mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
net: remove unused var self = this from old code
Removed an unused `var self = this` that is no longer required. PR-URL: https://github.com/nodejs/node/pull/5224 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
1 parent
4f6ad5c1dd
commit
e6bfe044ff
1 file changed
+1
-2
+1
-2
@@ -277,9 +277,8 @@ function writeAfterFIN(chunk, encoding, cb) {
|
||||
|
||||
var er = new Error('This socket has been ended by the other party');
|
||||
er.code = 'EPIPE';
|
||||
var self = this;
|
||||
// TODO: defer error events consistently everywhere, not just the cb
|
||||
self.emit('error', er);
|
||||
this.emit('error', er);
|
||||
if (typeof cb === 'function') {
|
||||
process.nextTick(cb, er);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user