diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-20 09:03:53 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-20 09:03:53 +0800 |
commit | b6fb8dbb528a28cfc3d9395262fa39e3eecca2d5 (patch) | |
tree | 999731d53c5eabecc617e4c91544cdf2b1f14860 /packages/monorepo-scripts | |
parent | 30256cbe517c217e7aa1e80e8c9428239751d5cb (diff) | |
download | dexon-sol-tools-b6fb8dbb528a28cfc3d9395262fa39e3eecca2d5.tar.gz dexon-sol-tools-b6fb8dbb528a28cfc3d9395262fa39e3eecca2d5.tar.zst dexon-sol-tools-b6fb8dbb528a28cfc3d9395262fa39e3eecca2d5.zip |
Remove outside declaration
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r-- | packages/monorepo-scripts/src/utils.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/utils.ts b/packages/monorepo-scripts/src/utils.ts index 3a16bf91d..b1bb78ab2 100644 --- a/packages/monorepo-scripts/src/utils.ts +++ b/packages/monorepo-scripts/src/utils.ts @@ -44,9 +44,8 @@ export const utils = { return updatedPackages; }, getChangelogJSONIfExists(changelogPath: string) { - let changelogJSON: string; try { - changelogJSON = fs.readFileSync(changelogPath, 'utf-8'); + const changelogJSON = fs.readFileSync(changelogPath, 'utf-8'); return changelogJSON; } catch (err) { return undefined; |