Skip to content

Commit a90b1d1

Browse files
committed
lib: chenged anonymous function to arrow function
1 parent ce890a0 commit a90b1d1

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)