From 1ead0f5790c5e965fdf9fc346763d3bebe92dea6 Mon Sep 17 00:00:00 2001 From: Mark Smith Date: Mon, 26 Jul 2021 09:48:15 +0100 Subject: [PATCH] simplifying byte conversion based on updated go-linter --- bscript/bip276_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bscript/bip276_test.go b/bscript/bip276_test.go index 3cd137b4..0afc9e86 100644 --- a/bscript/bip276_test.go +++ b/bscript/bip276_test.go @@ -109,7 +109,7 @@ func TestDecodeBIP276(t *testing.T) { assert.Equal(t, `"bitcoin-script"`, fmt.Sprintf("%q", prefix)) assert.Equal(t, 1, network) assert.Equal(t, 1, version) - assert.Equal(t, "fake script", fmt.Sprintf("%s", data)) + assert.Equal(t, "fake script", string(data)) }) t.Run("invalid decode", func(t *testing.T) { @@ -123,6 +123,6 @@ func TestDecodeBIP276(t *testing.T) { assert.Equal(t, `"bitcoin-script"`, fmt.Sprintf("%q", prefix)) assert.Equal(t, 1, network) assert.Equal(t, 1, version) - assert.Equal(t, "fake scrip", fmt.Sprintf("%s", data)) + assert.Equal(t, "fake scrip", string(data)) }) }