Bugfix: simplifying GetConfigFilePath() led to compile error

This commit is contained in:
Fabian Knorr 2018-02-10 16:03:06 +01:00
parent b6a7a50b2f
commit e252e1cc54

View file

@ -1738,7 +1738,7 @@ func (v *Viper) getConfigFile() (string, error) {
//
// Useful when you want to write the configPath to logfiles, stdout, etc.
// Comes in handy during debugging or when running in production environments.
func GetConfigFilePath() {
func GetConfigFilePath() (string, error) {
return v.getConfigFile()
}