mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
Fix missed path->filepath renaming
This fixes https://github.com/spf13/viper/issues/24 Caused by https://github.com/spf13/viper/pull/20
This commit is contained in:
parent
64816e4860
commit
5aa1437cf3
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -621,7 +621,7 @@ func getConfigType() string {
|
|||
}
|
||||
|
||||
cf := getConfigFile()
|
||||
ext := path.Ext(cf)
|
||||
ext := filepath.Ext(cf)
|
||||
|
||||
if len(ext) > 1 {
|
||||
return ext[1:]
|
||||
|
|
Loading…
Reference in a new issue