Skip to content

Commit 80c513f

Browse files
committed
push w/ spread.
1 parent 26b0d22 commit 80c513f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

merge-protocol-files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const protocol2Text = fs.readFileSync(args[1]);
1515
const protocol2 = JSON.parse(protocol2Text);
1616

1717
var mergedDomains = [];
18-
protocol1.domains.forEach(domain => mergedDomains.push(domain))
19-
protocol2.domains.forEach(domain => mergedDomains.push(domain))
18+
mergedDomains.push(...protocol1.domains);
19+
mergedDomains.push(...protocol2.domains);
2020

2121
const protocolMerged = {
2222
domains: mergedDomains

0 commit comments

Comments
 (0)