mirror of
https://github.com/spf13/viper
synced 2025-04-28 08:17:17 +00:00
Fix: checking for custom file extension was happening without file type
This commit is contained in:
parent
9c07e0f063
commit
799eb2dbd0
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 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue