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: #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>
  • Loading branch information
ken23421 authored and MylesBorins committed Mar 20, 2018
1 parent 044995e commit 38eb432
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 38eb432

Please sign in to comment.