1
0
Fork 0
mirror of https://github.com/spf13/viper synced 2025-07-14 21:57:18 +00:00

ReadInConfig now clears override and other maps

This commit is contained in:
Andrey Odintsov 2019-03-01 16:28:51 +03:00
parent f645e234c6
commit 64afcb0c57

View file

@ -1257,6 +1257,9 @@ func (v *Viper) ReadInConfig() error {
}
v.Lock()
v.config = config
v.override = make(map[string]interface{})
v.kvstore = make(map[string]interface{})
v.defaults = make(map[string]interface{})
v.Unlock()
return nil
}