mirror of
https://github.com/spf13/viper
synced 2025-06-12 22:27:18 +00:00
Merge 799eb2dbd0
into 260b8e9a3c
This commit is contained in:
commit
d78e33968c
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