From 244d9523789acf4920885204bd0b60b8860f9300 Mon Sep 17 00:00:00 2001 From: Pablo Alvarez de Sotomayor Posadillo Date: Tue, 26 Jun 2018 19:42:04 -0500 Subject: [PATCH] Fix a call to Unset. --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index d9974bc..95ca75b 100644 --- a/viper.go +++ b/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))