From 92096a346acf748c6359699757bc7946c0fcdad5 Mon Sep 17 00:00:00 2001 From: jose antonio <52543837+mfdeveloper508@users.noreply.github.com> Date: Mon, 2 Oct 2023 13:55:13 -0500 Subject: [PATCH] code refactoring Co-authored-by: Pavel Gabriel --- field/binary.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/field/binary.go b/field/binary.go index 4e1193d..d69ed53 100644 --- a/field/binary.go +++ b/field/binary.go @@ -137,8 +137,7 @@ func (f *Binary) Unmarshal(v interface{}) error { return fmt.Errorf("unsupported reflect.Value type: %s", val.Kind()) } case *string: - str := hex.EncodeToString(f.value) - *val = str + *val = hex.EncodeToString(f.value) case *[]byte: *val = f.value case *Binary: