mirror of
https://github.com/spf13/viper
synced 2024-12-23 03:57:01 +00:00
Use nil value variable declaration
This commit is contained in:
parent
19b0e4054c
commit
cb23e03ea4
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -1874,7 +1874,7 @@ func (v *Viper) getConfigFile() (string, error) {
|
|||
func (v *Viper) searchInPath(in string) (filename string) {
|
||||
jww.DEBUG.Println("Searching for config in ", in)
|
||||
for _, ext := range SupportedExts {
|
||||
configFilePlusExt := ""
|
||||
var configFilePlusExt string
|
||||
if ext != "" {
|
||||
configFilePlusExt = v.configName + "." + ext
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue