common/hexutil: remove redundant conversion (#21903)

This commit is contained in:
Daniel Liu 2024-12-16 19:24:01 +08:00
parent 28739d7863
commit dd318fc563

View file

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