From cb23e03ea41fa13c70fe41b5705f797b2d54e3b6 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Thu, 17 Oct 2019 15:06:26 +0200 Subject: [PATCH] Use nil value variable declaration --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index 7eecbbc..8cfc340 100644 --- a/viper.go +++ b/viper.go @@ -1874,7 +1874,7 @@ func (v *Viper) getConfigFile() (string, error) { func (v *Viper) searchInPath(in string) (filename string) { jww.DEBUG.Println("Searching for config in ", in) for _, ext := range SupportedExts { - configFilePlusExt := "" + var configFilePlusExt string if ext != "" { configFilePlusExt = v.configName + "." + ext } else {