mirror of https://github.com/spf13/viper.git
Use nil value variable declaration
This commit is contained in:
parent
19b0e4054c
commit
cb23e03ea4
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 New Issue