mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
40 files changed
+55
-86
No files matched your search
@@ -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 :
|
||||
|
||||
Reference in new issue
Block a user