test: use shorthand properties

PR-URL: https://github.com/nodejs/node/pull/18105
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Tobias Nießen committed 2018-01-17 14:33:20 +01:00
1 parent eb68a06a3e
commit db9c556f50
40 files changed
+55 -86

No files matched your search

+2 -6
View File
@@ -112,11 +112,7 @@ function listening() {
function makeReq(path, port, error, host, ca) {
pending++;
const options = {
port: port,
path: path,
ca: ca
};
const options = { port, path, ca };
if (!ca) {
options.agent = agent0;
@@ -134,7 +130,7 @@ function makeReq(path, port, error, host, ca) {
}
if (host) {
options.headers = { host: host };
options.headers = { host };
}
const req = https.get(options);
const server = port === server1.address().port ? server1 :