From 366b049c1d64b8f9f450356f8da6f41e54ef7768 Mon Sep 17 00:00:00 2001 From: yanyandenuonuo Date: Tue, 29 Jan 2019 15:18:47 +0800 Subject: [PATCH] modify comment and log print --- viper.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/viper.go b/viper.go index 7101c60..7131bd2 100644 --- a/viper.go +++ b/viper.go @@ -1151,8 +1151,7 @@ func (v *Viper) realKey(key string) string { return key } -// Remove the alias. -// This enables one to remove a alias and then override the alias +// This enables one to remove a registered alias. func UnregisterAlias(alias string) { v.UnregisterAlias(alias) } func (v *Viper) UnregisterAlias(alias string) { v.unregisterAlias(alias) @@ -1163,7 +1162,7 @@ func (v *Viper) unregisterAlias(alias string) { if _, exists := v.aliases[alias]; exists { delete(v.aliases, alias) } else { - jww.DEBUG.Println("Alias already unregister alias", alias) + jww.DEBUG.Println("Trying to unregister a non-existent alias", alias) } }