Skip to content

Commit

Permalink
fix(optimize): add extra optimize pass
Browse files Browse the repository at this point in the history
this is a bit of a temp hack until we can investiage making the optimize match pass properly recursive
  • Loading branch information
b5 committed Mar 7, 2019
1 parent dfc0248 commit 613c16a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deepdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (d *diff) diff() []*Delta {
// removing the need for this second call (which is effectively doing the same
// thing as recursive/aggressive match propagation)
d.optimize(d.t1, d.t2)
d.optimize(d.t1, d.t2)
return d.calcDeltas(d.t1, d.t2)
}

Expand Down

0 comments on commit 613c16a

Please sign in to comment.