diff --git a/cmd/config.go b/cmd/config.go index c77a26e..c39b60c 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -87,8 +87,6 @@ func LoadConfig(s string) (*Config, error) { var err error var c *Config = GetConfig() - *c = DefaultConfig - if _, err := toml.Decode(s, &c); err != nil { err = fmt.Errorf("fatal: failed to parse; %w", err) } @@ -101,8 +99,6 @@ func LoadConfigFile(configPath string) (*Config, error) { var c *Config = GetConfig() - *c = DefaultConfig - if _, err := toml.DecodeFile(configPath, &c); err != nil { err = fmt.Errorf("fatal: failed to parse %s; %w", configPath, err) }