Skip to content

Commit

Permalink
fix: do not default in-place compaction option
Browse files Browse the repository at this point in the history
  • Loading branch information
wI2L committed Nov 3, 2023
1 parent c85fb8c commit 5303ffa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func compare(d *Differ, src, tgt interface{}) (Patch, error) {
return nil, err
}
d.targetBytes = tb
d.compactInPlace = true

d.Compare(si, ti)
return d.patch, nil
Expand All @@ -56,7 +55,6 @@ func compareJSON(d *Differ, src, tgt []byte, unmarshal unmarshalFunc) (Patch, er
return nil, err
}
d.targetBytes = tgt
d.compactInPlace = true

d.Compare(si, ti)
return d.patch, nil
Expand Down

0 comments on commit 5303ffa

Please sign in to comment.