mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
commit
64816e4860
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -301,7 +301,7 @@ func find(key string) interface{} {
|
|||
if exists {
|
||||
jww.TRACE.Println(key, "registered as env var", envkey)
|
||||
if val = os.Getenv(envkey); val != "" {
|
||||
jww.TRACE.Println(envkey, "found in environement with val:", val)
|
||||
jww.TRACE.Println(envkey, "found in environment with val:", val)
|
||||
return val
|
||||
} else {
|
||||
jww.TRACE.Println(envkey, "env value unset:")
|
||||
|
|
Loading…
Reference in a new issue