Skip to content

Commit a90b1d1

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/_http_client.js

Lines changed: 1 addition & 1 deletion
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)