From ec2a2f3fb95e08babb2926436e1797f117758839 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 14 Aug 2020 12:08:16 +0300 Subject: [PATCH] transaction: fix ineffassign GoReportCard issue s is not used purposefuly. --- pkg/core/transaction/witness_scope_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/transaction/witness_scope_test.go b/pkg/core/transaction/witness_scope_test.go index 1b89ee46d..42a672e68 100644 --- a/pkg/core/transaction/witness_scope_test.go +++ b/pkg/core/transaction/witness_scope_test.go @@ -7,13 +7,13 @@ import ( ) func TestScopesFromString(t *testing.T) { - s, err := ScopesFromString("") + _, err := ScopesFromString("") require.Error(t, err) _, err = ScopesFromString("123") require.Error(t, err) - s, err = ScopesFromString("Global") + s, err := ScopesFromString("Global") require.NoError(t, err) require.Equal(t, Global, s)