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 244d952378
commit 9956d04494
No known key found for this signature in database
GPG Key ID: ABCB521E2495CC69
1 changed files with 1 additions and 0 deletions

View File

@ -1409,6 +1409,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) }
func (v *Viper) Unset(key string) {
// If alias passed in, then set the proper override
key = v.realKey(strings.ToLower(key))