Skip to content

Commit c87af34

Browse files
taishikatoBethGriggs
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 a1a393b commit c87af34

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
@@ -299,7 +299,7 @@ ClientRequest.prototype.abort = function abort() {
299299
if (this.res) {
300300
this.res._dump();
301301
} else {
302-
this.once('response', function(res) {
302+
this.once('response', (res) => {
303303
res._dump();
304304
});
305305
}

0 commit comments

Comments
 (0)