mirror of https://github.com/sirupsen/logrus.git
Fixed ineffectual assignment in test
Don't assign l if it's not being checked/used afterwards.
This commit is contained in:
parent
07a84ee741
commit
d4257626ad
|
@ -539,7 +539,7 @@ func TestParseLevel(t *testing.T) {
|
|||
assert.Nil(t, err)
|
||||
assert.Equal(t, TraceLevel, l)
|
||||
|
||||
l, err = ParseLevel("invalid")
|
||||
_, err = ParseLevel("invalid")
|
||||
assert.Equal(t, "not a valid logrus Level: \"invalid\"", err.Error())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue