Skip to content

Commit

Permalink
Merge pull request #9 from vijayrathore8492/master-hotfix
Browse files Browse the repository at this point in the history
Master hotfix
  • Loading branch information
vijayrathore8492 authored Feb 26, 2021
2 parents 3348803 + 8dcc0d0 commit 08a9788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/centralStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ export default class CentralStore {
private static __searchInJsonFile(name: string) {
if(!fs.existsSync(this.jsonConfigFile)) return ;

return JSON.parse(fs.readFileSync(this.jsonConfigFile, 'utf-8'))[name];
return JSON.parse(fs.readFileSync(this.jsonConfigFile, 'utf-8') || "{}")[name];
}
}

0 comments on commit 08a9788

Please sign in to comment.