diff options
author | takato <taishi.k0903@gmail.com> | 2018-11-24 15:49:06 +0900 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2018-11-26 17:36:35 +0530 |
commit | 39d25eb1e2c6ffbb02b28658a1307d047370af39 (patch) | |
tree | 8a203caeaa2b3e11173e81ef2333e76640d41436 /lib | |
parent | e958ee7a70d0af136fae8a708882cccdd4601658 (diff) | |
download | android-node-v8-39d25eb1e2c6ffbb02b28658a1307d047370af39.tar.gz android-node-v8-39d25eb1e2c6ffbb02b28658a1307d047370af39.tar.bz2 android-node-v8-39d25eb1e2c6ffbb02b28658a1307d047370af39.zip |
lib: change anonymous function to arrow function
PR-URL: https://github.com/nodejs/node/pull/24589
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_http_client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js index d91b43516f..5b47f9c72a 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(); }); } |