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.

Backport-PR-URL: #22380
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]>
  • Loading branch information
ken23421 authored and MylesBorins committed Sep 6, 2018
1 parent 4d5cb4c commit e1e6a09
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 e1e6a09

Please sign in to comment.