From a4c305c2e99680cd1a6c05e606eb3f35c640eeff Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 4 Apr 2021 22:53:35 +0000 Subject: [PATCH] Fix bug where configuration is being overridden by a default configuration --- cmd/config.go | 4 ---- 1 file changed, 4 deletions(-) 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) }