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
parent 64816e4860
commit c3dd71c3fb

View file

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