This commit is contained in:
Kush 2021-09-19 22:50:31 +05:30 committed by GitHub
commit 6725b786d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}