From 02d80738bfade7567734fb45904b85e9e7d2aed5 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Wed, 1 Aug 2018 18:51:59 -0300 Subject: [PATCH] less ceremony --- script/draft-release/run.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/draft-release/run.ts b/script/draft-release/run.ts index 2d041d09809..9c6f2a3aa1c 100644 --- a/script/draft-release/run.ts +++ b/script/draft-release/run.ts @@ -94,10 +94,10 @@ export async function run(args: ReadonlyArray): Promise { if (channel === 'production') { const existingChangelog = getChangelogEntriesSince(previousVersion) - const entries = new Array(...existingChangelog) + const entries = [...existingChangelog] printInstructions(nextVersion, entries) } else if (channel === 'beta') { - const entries = new Array(...changelogEntries) + const entries = [...changelogEntries] printInstructions(nextVersion, entries) } }