Skip to content

Commit

Permalink
data copy to add binary
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Nov 9, 2024
1 parent a8a7215 commit c26250a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type Data struct {
func (d *Data) CopyTo(to *Data) *Data {
to.ID = d.ID
to.Rev = d.Rev
to.Binary = d.Binary
to.B = append(to.B[:0], d.B...)

return to
Expand Down

0 comments on commit c26250a

Please sign in to comment.