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:
Andrew Cohen 2014-11-13 14:43:51 -05:00 committed by spf13
parent 64816e4860
commit 5aa1437cf3

View file

@ -621,7 +621,7 @@ func getConfigType() string {
}
cf := getConfigFile()
ext := path.Ext(cf)
ext := filepath.Ext(cf)
if len(ext) > 1 {
return ext[1:]