From 04fbf315ee7b20d9c700721fac54a5d99dc45a18 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 27 Nov 2022 19:35:45 -0800 Subject: [PATCH] Fix startup errors on completely empty settings file Closes #564 --- src/utils/config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config/config.js b/src/utils/config/config.js index 0003c589d94..57a63f7b4f1 100644 --- a/src/utils/config/config.js +++ b/src/utils/config/config.js @@ -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) ?? {}; } \ No newline at end of file