From a90b1d1b3a907c7cb20ba44184a7e74ee48f78bb Mon Sep 17 00:00:00 2001 From: takato Date: Sat, 24 Nov 2018 15:49:06 +0900 Subject: [PATCH] lib: chenged anonymous function to arrow function --- lib/_http_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index d91b43516fa4ee..5b47f9c72a71b7 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -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(); }); }