From 9be53e5961b00745af99863647ec639fab1eba5e Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 12 Aug 2019 18:13:04 +0300 Subject: [PATCH] pkg/vm/stack: fix SA4006 GolangCI warning in TestStackPushPop() SA4006: this value of stackElement is never used (from staticcheck) --- pkg/vm/stack/stack_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vm/stack/stack_test.go b/pkg/vm/stack/stack_test.go index 148931a5a..2241782a2 100644 --- a/pkg/vm/stack/stack_test.go +++ b/pkg/vm/stack/stack_test.go @@ -51,7 +51,7 @@ func TestStackPushPop(t *testing.T) { assert.Equal(t, true, item.Equal(a)) // We should get an error as there are nomore items left to pop - stackElement, err = testStack.Pop() + _, err = testStack.Pop() assert.NotNil(t, err) }