This commit is contained in:
laszlo-kiss 2016-08-30 16:03:15 +00:00 committed by GitHub
commit bc2725c3f7

View file

@ -802,8 +802,10 @@ func (v *Viper) find(key string) interface{} {
if source != nil {
if reflect.TypeOf(source).Kind() == reflect.Map {
val := v.searchMap(cast.ToStringMap(source), path[1:])
jww.TRACE.Println(key, "found in nested config:", val)
return val
if val != nil {
jww.TRACE.Println(key, "found in nested config:", val)
return val
}
}
}
}