We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26b0d22 commit 80c513fCopy full SHA for 80c513f
merge-protocol-files.js
@@ -15,8 +15,8 @@ const protocol2Text = fs.readFileSync(args[1]);
15
const protocol2 = JSON.parse(protocol2Text);
16
17
var mergedDomains = [];
18
-protocol1.domains.forEach(domain => mergedDomains.push(domain))
19
-protocol2.domains.forEach(domain => mergedDomains.push(domain))
+mergedDomains.push(...protocol1.domains);
+mergedDomains.push(...protocol2.domains);
20
21
const protocolMerged = {
22
domains: mergedDomains
0 commit comments