Skip to content

Commit

Permalink
fix(config): override old config
Browse files Browse the repository at this point in the history
  • Loading branch information
doron-cohen committed Sep 26, 2020
1 parent fdfc4d0 commit 29e938d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/rules/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func LoadRulesConfig(filepath string) (RulesConfig, error) {
return RulesConfig{}, err
}

// We want to completely override the old config
rulesConfig = RulesConfig{}
config := &mapstructure.DecoderConfig{
DecodeHook: actionDecodeHook,
Result: &rulesConfig,
Expand Down

0 comments on commit 29e938d

Please sign in to comment.