From d4257626adba42b2d3c12e2a1e6f9cb94c904879 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 20 Jul 2019 03:27:21 +0200 Subject: [PATCH] Fixed ineffectual assignment in test Don't assign l if it's not being checked/used afterwards. --- logrus_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logrus_test.go b/logrus_test.go index 72b6ea2..51f09a2 100644 --- a/logrus_test.go +++ b/logrus_test.go @@ -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()) }