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 BethGriggs committed Feb 11, 2019
1 parent a1a393b commit c87af34
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 @@ -299,7 +299,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 c87af34

Please sign in to comment.