aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-20 09:03:53 +0800
committerFabio Berger <me@fabioberger.com>2018-04-20 09:03:53 +0800
commitb6fb8dbb528a28cfc3d9395262fa39e3eecca2d5 (patch)
tree999731d53c5eabecc617e4c91544cdf2b1f14860 /packages
parent30256cbe517c217e7aa1e80e8c9428239751d5cb (diff)
downloaddexon-0x-contracts-b6fb8dbb528a28cfc3d9395262fa39e3eecca2d5.tar.gz
dexon-0x-contracts-b6fb8dbb528a28cfc3d9395262fa39e3eecca2d5.tar.zst
dexon-0x-contracts-b6fb8dbb528a28cfc3d9395262fa39e3eecca2d5.zip
Remove outside declaration
Diffstat (limited to 'packages')
-rw-r--r--packages/monorepo-scripts/src/utils.ts3
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;