Hides unused variable in test

This commit is contained in:
Pedro Silva 2020-01-12 10:32:08 +00:00
parent ea03b43202
commit 40548756fc
No known key found for this signature in database
GPG key ID: 135E84A1E585EE34

View file

@ -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)