mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: use spread object
Object.assign() can be replaced by spread objects PR-URL: https://github.com/nodejs/node/pull/30423 Refs: https://eslint.org/docs/rules/prefer-object-spread Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
76d4a23468
commit
c52ebc06da
23 files changed
+31
-31
No files matched your search
@@ -63,7 +63,7 @@ function variations(iter, port, cb) {
|
||||
// Save `value` for check the next time.
|
||||
value = next.value.val;
|
||||
const [key, val] = next.value;
|
||||
https.get(Object.assign({}, getBaseOptions(port), { [key]: val }),
|
||||
https.get({ ...getBaseOptions(port), [key]: val },
|
||||
variations(iter, port, cb));
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user