mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: refactor http-https-default-ports
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 <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
4d5cb4c8b5
commit
e1e6a0965e
1 file changed
+2
-2
@@ -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();
|
||||
}));
|
||||
Reference in new issue
Block a user