mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
modify comment and log print
This commit is contained in:
parent
e59ebc4c2d
commit
366b049c1d
1 changed files with 2 additions and 3 deletions
5
viper.go
5
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue