From 40548756fca78e9486a40347be968db807085a69 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Sun, 12 Jan 2020 10:32:08 +0000 Subject: [PATCH] Hides unused variable in test --- viper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index 566ac57..f9dc34a 100644 --- a/viper_test.go +++ b/viper_test.go @@ -318,7 +318,7 @@ func TestSearchInPath_WithoutConfigTypeSet(t *testing.T) { _ = v.fs.Remove(file) }() assert.NoError(t, createErr) - filename, err := v.getConfigFile() + _, err := v.getConfigFile() // unless config type is set, files without extension // are not considered assert.Error(t, err)