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)