This commit is contained in:
Rishav Chaudhary 2025-03-30 02:33:09 +03:00 committed by GitHub
commit a8d0ad1536
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,8 +83,8 @@ 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 { if b, _ := exists(v.fs, filepath.Join(in, v.configName+"."+v.configType)); b {
return filepath.Join(in, v.configName) return filepath.Join(in, v.configName+"."+v.configType)
} }
} }