Skip to content

Commit

Permalink
code refactoring
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Gabriel <[email protected]>
  • Loading branch information
mfdeveloper508 and alovak authored Oct 2, 2023
1 parent adfa888 commit 92096a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions field/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 92096a3

Please sign in to comment.