mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user