mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04: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
@@ -38,7 +38,7 @@ const data = Buffer.alloc(1024 * 32 + 1);
|
||||
httpsTest();
|
||||
|
||||
function httpsTest() {
|
||||
const sopt = { key: key, cert: cert };
|
||||
const sopt = { key, cert };
|
||||
|
||||
const server = https.createServer(sopt, function(req, res) {
|
||||
res.setHeader('content-length', data.length);
|
||||
|
||||
Reference in new issue
Block a user