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; return updatedPackages;
}, },
getChangelogJSONIfExists(changelogPath: string) { getChangelogJSONIfExists(changelogPath: string) {
let changelogJSON: string;
try { try {
changelogJSON = fs.readFileSync(changelogPath, 'utf-8'); const changelogJSON = fs.readFileSync(changelogPath, 'utf-8');
return changelogJSON; return changelogJSON;
} catch (err) { } catch (err) {
return undefined; return undefined;