Skip to content

Commit

Permalink
Fix startup errors on completely empty settings file
Browse files Browse the repository at this point in the history
Closes #564
  • Loading branch information
shamoon committed Nov 28, 2022
1 parent 4163975 commit 04fbf31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ export function getSettings() {

const settingsYaml = join(process.cwd(), "config", "settings.yaml");
const fileContents = readFileSync(settingsYaml, "utf8");
return yaml.load(fileContents);
return yaml.load(fileContents) ?? {};
}

0 comments on commit 04fbf31

Please sign in to comment.