Skip to content

Commit

Permalink
lib: change anonymous function to arrow function
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
taishikato authored and targos committed Nov 27, 2018
1 parent c948a2d commit cca8161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down

0 comments on commit cca8161

Please sign in to comment.