lib: change anonymous function to arrow function

PR-URL: https://github.com/nodejs/node/pull/24589
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
This commit is contained in:
takato 2018-11-24 15:49:06 +09:00 committed by Gireesh Punathil
parent e958ee7a70
commit 39d25eb1e2

View File

@ -306,7 +306,7 @@ ClientRequest.prototype.abort = function abort() {
if (this.res) {
this.res._dump();
} else {
this.once('response', function(res) {
this.once('response', (res) => {
res._dump();
});
}