mirror of
https://github.com/spf13/viper
synced 2024-11-04 20:27: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
c3dd71c3fb
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