Skip to content

Commit 97aee07

Browse files
committed
Make Scala native compile
1 parent 4f63e6b commit 97aee07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/diffson/jsonpatch/JsonDiff.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class JsonDiff[Json](diffArray: Boolean, rememberOld: Boolean)(implicit J: Jsony
4848
case (fld, value1) :: fields1 =>
4949
fields2.get(fld) match {
5050
case Some(value2) =>
51-
fieldsDiff(fields1, fields2.removed(fld), path).flatMap(d => diff(value1, value2, path / fld).map(_ ++ d))
51+
fieldsDiff(fields1, fields2 - fld, path).flatMap(d => diff(value1, value2, path / fld).map(_ ++ d))
5252
case None =>
5353
// field is not in the second object, delete it
5454
fieldsDiff(fields1, fields2, path).map(

0 commit comments

Comments
 (0)