Skip to content

Commit

Permalink
fix: tagName go into new slice diff instance
Browse files Browse the repository at this point in the history
  • Loading branch information
luotao.by24 committed Nov 5, 2024
1 parent e2707de commit 5ecba0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions diff_slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (st *sliceTracker) has(s, v reflect.Value, d *Differ) bool {
x := s.Index(i)

var nd Differ
nd.TagName = d.TagName
nd.Filter = d.Filter
nd.customValueDiffers = d.customValueDiffers

Expand Down

0 comments on commit 5ecba0c

Please sign in to comment.