Remove outside declaration

This commit is contained in:
Fabio Berger 2018-04-20 10:03:53 +09:00
parent 30256cbe51
commit b6fb8dbb52

View File

@ -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;