Skip to content

Commit

Permalink
initialize variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipu authored Mar 7, 2022
1 parent bc0668d commit 320b389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (configuration *Configuration) Load() map[string]interface{} {
v := env.New(viper.New())
v.AutomaticEnv()
for name, value := range configuration.RegisteredConfigStruct {
err = v.Unmarshal(&value)
err := v.Unmarshal(&value)
if err != nil {
log.Fatal("environment cant be loaded: ", err)
}
Expand Down

0 comments on commit 320b389

Please sign in to comment.