Skip to content

Commit

Permalink
Add oldValue to operation when the rationalize is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
woostundy committed Jun 26, 2023
1 parent 0975f4a commit 7ecf313
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions differ.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func (d *Differ) rationalize(ptr pointer, src, tgt interface{}, lastOpIdx int, d
replaceOp := Operation{
Type: OperationReplace,
Path: ptr.string(), // shallow copy
OldValue: src,
Value: tgt,
valueLen: len(doc),
}
Expand Down

0 comments on commit 7ecf313

Please sign in to comment.