From 4695bd25769698403a44530ab8e6314165f0084d Mon Sep 17 00:00:00 2001 From: takato Date: Sat, 24 Nov 2018 15:49:06 +0900 Subject: [PATCH] lib: change anonymous function to arrow function PR-URL: https://github.com/nodejs/node/pull/24589 Reviewed-By: Rich Trott Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Shingo Inoue --- 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(); }); }