From c87af34886c0e4d0ed775fea94b6b7de29ac4771 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 075787ba9f8f33..a70f4de918b08e 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -299,7 +299,7 @@ ClientRequest.prototype.abort = function abort() { if (this.res) { this.res._dump(); } else { - this.once('response', function(res) { + this.once('response', (res) => { res._dump(); }); }