mirror of
https://github.com/spf13/viper
synced 2025-05-11 22:57:21 +00:00
Merge abc5f3d680
into 0d7e8034ee
This commit is contained in:
commit
6725b786d1
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -2115,7 +2115,7 @@ func (v *Viper) searchInPath(in string) (filename string) {
|
|||
}
|
||||
}
|
||||
|
||||
if v.configType != "" {
|
||||
if v.configType == "" {
|
||||
if b, _ := exists(v.fs, filepath.Join(in, v.configName)); b {
|
||||
return filepath.Join(in, v.configName)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue