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 rvagg committed Nov 28, 2018
1 parent b65ffd5 commit a8e93f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_client.js
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 a8e93f7

Please sign in to comment.