Fix startup errors on completely empty settings file

Closes #564
pull/567/head v0.5.2
Michael Shamoon 2 years ago
parent 41639752e8
commit 04fbf315ee

@ -32,5 +32,5 @@ export function getSettings() {
const settingsYaml = join(process.cwd(), "config", "settings.yaml"); const settingsYaml = join(process.cwd(), "config", "settings.yaml");
const fileContents = readFileSync(settingsYaml, "utf8"); const fileContents = readFileSync(settingsYaml, "utf8");
return yaml.load(fileContents); return yaml.load(fileContents) ?? {};
} }
Loading…
Cancel
Save