From f8e1403e72310ec0d6c83f1a510687feb3eb0f89 Mon Sep 17 00:00:00 2001 From: Namit Bhalla <oyenamit@gmail.com> Date: Sat, 17 Nov 2018 17:20:03 +0530 Subject: [PATCH] test: changed anonymous closure functions to arrow functions --- test/parallel/test-http-res-write-end-dont-take-array.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-res-write-end-dont-take-array.js b/test/parallel/test-http-res-write-end-dont-take-array.js index fbe71bd6fcbb67..72268efcae3a84 100644 --- a/test/parallel/test-http-res-write-end-dont-take-array.js +++ b/test/parallel/test-http-res-write-end-dont-take-array.js @@ -62,10 +62,10 @@ server.once('request', common.mustCall((req, res) => { server.listen(0, function() { // just make a request, other tests handle responses - http.get({ port: this.address().port }, function(res) { + http.get({ port: this.address().port }, (res) => { res.resume(); // do it again to test .end(Buffer); - http.get({ port: server.address().port }, function(res) { + http.get({ port: server.address().port }, (res) => { res.resume(); server.close(); });