deserialize config file onto default vs empty config

This commit is contained in:
Drew Weymouth
2023-01-22 16:29:07 -08:00
parent 6a931d62f4
commit 55f6f6a18a
+1 -1
View File
@@ -41,7 +41,7 @@ func ReadConfigFile(filepath string) (*Config, error) {
}
defer f.Close()
c := &Config{}
c := DefaultConfig()
if err := toml.NewDecoder(f).Decode(c); err != nil {
return nil, err
}