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:
parent
e958ee7a70
commit
39d25eb1e2
@ -306,7 +306,7 @@ ClientRequest.prototype.abort = function abort() {
|
|||||||
if (this.res) {
|
if (this.res) {
|
||||||
this.res._dump();
|
this.res._dump();
|
||||||
} else {
|
} else {
|
||||||
this.once('response', function(res) {
|
this.once('response', (res) => {
|
||||||
res._dump();
|
res._dump();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user