fix some config bugs

This commit is contained in:
tsmethurst 2021-07-19 19:30:49 +02:00
commit 96869c3244
2 changed files with 2 additions and 1 deletions

View file

@ -98,7 +98,7 @@ func loadFromFile(path string) (*Config, error) {
return nil, fmt.Errorf("could not read file at path %s: %s", path, err)
}
config := &Config{}
config := Empty()
if err := yaml.Unmarshal(bytes, config); err != nil {
return nil, fmt.Errorf("could not unmarshal file at path %s: %s", path, err)
}