Skip to content

Commit

Permalink
test: refactor http-https-default-ports
Browse files Browse the repository at this point in the history
Use arrow functions.

PR-URL: nodejs#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]>
  • Loading branch information
ken23421 authored and jasnell committed Aug 17, 2018
1 parent 468a289 commit b3e4775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/internet/test-http-https-default-ports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}));

0 comments on commit b3e4775

Please sign in to comment.