mirror of
https://github.com/spf13/viper
synced 2025-06-12 22:27:18 +00:00
Merge bcdfa9abcf
into 260b8e9a3c
This commit is contained in:
commit
8ae0b7cd73
1 changed files with 4 additions and 0 deletions
4
viper.go
4
viper.go
|
@ -1911,6 +1911,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