Skip to content

Commit 38eb432

Browse files
ken23421MylesBorins
authored andcommitted
test: refactor http-https-default-ports
Use arrow functions. PR-URL: #19130 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 044995e commit 38eb432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎test/internet/test-http-https-default-ports.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ const https = require('https');
3030

3131
consthttp=require('http');
3232

33-
https.get(`https://${addresses.INET_HOST}/`,common.mustCall(function(res){
33+
https.get(`https://${addresses.INET_HOST}/`,common.mustCall((res)=>{
3434
res.resume();
3535
}));
3636

37-
http.get(`http://${addresses.INET_HOST}/`,common.mustCall(function(res){
37+
http.get(`http://${addresses.INET_HOST}/`,common.mustCall((res)=>{
3838
res.resume();
3939
}));

0 commit comments

Comments
(0)