From dd318fc563bf0e369dee8aa622c503122e048f74 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Mon, 16 Dec 2024 19:24:01 +0800 Subject: [PATCH] common/hexutil: remove redundant conversion (#21903) --- common/hexutil/json_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hexutil/json_test.go b/common/hexutil/json_test.go index 8a6b8643a1..ed7d6fad1a 100644 --- a/common/hexutil/json_test.go +++ b/common/hexutil/json_test.go @@ -88,7 +88,7 @@ func TestUnmarshalBytes(t *testing.T) { if !checkError(t, test.input, err, test.wantErr) { continue } - if !bytes.Equal(test.want.([]byte), []byte(v)) { + if !bytes.Equal(test.want.([]byte), v) { t.Errorf("input %s: value mismatch: got %x, want %x", test.input, &v, test.want) continue }