Skip to content

Commit

Permalink
define variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfenwick committed Nov 15, 2018
1 parent 5604bff commit fa07eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/configmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (cm *ConfigManager) GetConfig() (*Config, error) {
viper.AutomaticEnv()
}

err = viper.Unmarshal(&config)
err := viper.Unmarshal(&config)
if err != nil {
return nil, fmt.Errorf("failed to unmarshal config: %v", err)
}
Expand Down

0 comments on commit fa07eab

Please sign in to comment.