Fix a call to Unset.

This commit is contained in:
Pablo Alvarez de Sotomayor Posadillo 2018-06-26 19:42:04 -05:00 committed by Ritho
parent 55f6336645
commit 244d952378
No known key found for this signature in database
GPG key ID: ABCB521E2495CC69

View file

@ -1408,7 +1408,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, value) } 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))