mirror of
https://github.com/spf13/viper
synced 2025-04-28 00:07:22 +00:00
Merge bcdfa9abcf
into 1508a7ba44
This commit is contained in:
commit
482a05d3b0
1 changed files with 4 additions and 0 deletions
4
viper.go
4
viper.go
|
@ -1881,6 +1881,10 @@ func (v *Viper) flattenAndMergeMap(shadow map[string]bool, m map[string]any, pre
|
|||
if shadow == nil {
|
||||
shadow = make(map[string]bool)
|
||||
}
|
||||
if len(m) == 0 && prefix != ""{
|
||||
shadow[strings.ToLower(prefix)]=true
|
||||
return shadow
|
||||
}
|
||||
|
||||
var m2 map[string]any
|
||||
if prefix != "" {
|
||||
|
|
Loading…
Add table
Reference in a new issue