From e1e6a0965eeb64cfcec0fcb3a62af8233025ecbf Mon Sep 17 00:00:00 2001 From: Ken Lin Date: Sun, 4 Mar 2018 20:12:03 +0800 Subject: [PATCH] test: refactor http-https-default-ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use arrow functions. Backport-PR-URL: https://github.com/nodejs/node/pull/22380 PR-URL: https://github.com/nodejs/node/pull/19130 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Gibson Fahnestock Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Jon Moss Reviewed-By: Ruben Bridgewater --- test/internet/test-http-https-default-ports.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/internet/test-http-https-default-ports.js b/test/internet/test-http-https-default-ports.js index 5f1b9eddb4f416..ddf4c5d73902bc 100644 --- a/test/internet/test-http-https-default-ports.js +++ b/test/internet/test-http-https-default-ports.js @@ -30,10 +30,10 @@ const https = require('https'); const http = require('http'); -https.get(`https://${addresses.INET_HOST}/`, common.mustCall(function(res) { +https.get(`https://${addresses.INET_HOST}/`, common.mustCall((res) => { res.resume(); })); -http.get(`http://${addresses.INET_HOST}/`, common.mustCall(function(res) { +http.get(`http://${addresses.INET_HOST}/`, common.mustCall((res) => { res.resume(); }));