Skip to content

Commit

Permalink
fix unmarshalkey
Browse files Browse the repository at this point in the history
  • Loading branch information
rsafonseca committed Feb 7, 2024
1 parent bef71a0 commit 651f617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/viper_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func (c *Config) UnmarshalKey(key string, rawVal interface{}) error {
prefix := key + delimiter

i := c.Viper.Get(key)
if i == nil { return nil }
if isStringMapInterface(i) {
val := i.(map[string]interface{})
keys := c.AllKeys()
Expand Down

0 comments on commit 651f617

Please sign in to comment.