Skip to content

Commit

Permalink
reset Configuration data before unmarshalling the config
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Sep 27, 2023
1 parent 048db61 commit b7c1542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/configuration/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func GetFilePath() string {

func LoadConfig() {
// load default configuration values
CurrentConfig = Configuration{}
err := viper.Unmarshal(&CurrentConfig)
if err != nil {
ui.Fatal("unable to decode into struct, %v", err)
Expand Down

0 comments on commit b7c1542

Please sign in to comment.