Skip to content

Commit a8e93f7

Browse files
taishikatorvagg
authored andcommitted
lib: change anonymous function to arrow function
PR-URL: #24589 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Shingo Inoue <[email protected]>
1 parent b65ffd5 commit a8e93f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_http_client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ ClientRequest.prototype.abort = function abort() {
306306
if (this.res) {
307307
this.res._dump();
308308
} else {
309-
this.once('response', function(res) {
309+
this.once('response', (res) => {
310310
res._dump();
311311
});
312312
}

0 commit comments

Comments
 (0)