mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: refactor http-https-default-ports
Use arrow functions. 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:
parent
2b3f46c989
commit
06e09b6171
@ -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();
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user