mirror of
https://github.com/spf13/viper
synced 2025-04-28 16:27:17 +00:00
Merge 799eb2dbd0
into 1508a7ba44
This commit is contained in:
commit
a8d0ad1536
1 changed files with 2 additions and 2 deletions
4
file.go
4
file.go
|
@ -83,8 +83,8 @@ func (v *Viper) searchInPath(in string) (filename string) {
|
|||
}
|
||||
|
||||
if v.configType != "" {
|
||||
if b, _ := exists(v.fs, filepath.Join(in, v.configName)); b {
|
||||
return filepath.Join(in, v.configName)
|
||||
if b, _ := exists(v.fs, filepath.Join(in, v.configName+"."+v.configType)); b {
|
||||
return filepath.Join(in, v.configName+"."+v.configType)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue