mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Fix a call to Unset.
This commit is contained in:
parent
55f6336645
commit
244d952378
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -1408,7 +1408,7 @@ func (v *Viper) Set(key string, value interface{}) {
|
|||
|
||||
// Unset deletes a key from Viper.
|
||||
// Unset is case-insensitive for a key.
|
||||
func Unset(key string) { v.Unset(key, value) }
|
||||
func Unset(key string) { v.Unset(key) }
|
||||
func (v *Viper) Unset(key string) {
|
||||
// If alias passed in, then set the proper override
|
||||
key = v.realKey(strings.ToLower(key))
|
||||
|
|
Loading…
Reference in a new issue