mirror of https://github.com/spf13/viper.git
Fix a call to Unset.
This commit is contained in:
parent
244d952378
commit
9956d04494
1
viper.go
1
viper.go
|
@ -1409,6 +1409,7 @@ func (v *Viper) Set(key string, value interface{}) {
|
||||||
// Unset deletes a key from Viper.
|
// Unset deletes a key from Viper.
|
||||||
// Unset is case-insensitive for a key.
|
// Unset is case-insensitive for a key.
|
||||||
func Unset(key string) { v.Unset(key) }
|
func Unset(key string) { v.Unset(key) }
|
||||||
|
|
||||||
func (v *Viper) Unset(key string) {
|
func (v *Viper) Unset(key string) {
|
||||||
// If alias passed in, then set the proper override
|
// If alias passed in, then set the proper override
|
||||||
key = v.realKey(strings.ToLower(key))
|
key = v.realKey(strings.ToLower(key))
|
||||||
|
|
Loading…
Reference in New Issue