transaction: fix ineffassign GoReportCard issue

s is not used purposefuly.
This commit is contained in:
Roman Khimov 2020-08-14 12:08:16 +03:00
parent 70cc8b89e8
commit ec2a2f3fb9

View file

@ -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)