Fixed ineffectual assignment in test

Don't assign l if it's not being checked/used afterwards.
This commit is contained in:
Christian Muehlhaeuser 2019-07-20 03:27:21 +02:00
parent 07a84ee741
commit d4257626ad
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ func TestParseLevel(t *testing.T) {
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, TraceLevel, l) assert.Equal(t, TraceLevel, l)
l, err = ParseLevel("invalid") _, err = ParseLevel("invalid")
assert.Equal(t, "not a valid logrus Level: \"invalid\"", err.Error()) assert.Equal(t, "not a valid logrus Level: \"invalid\"", err.Error())
} }