Simplify code: replace exists with contains (#29729)
This commit is contained in:
parent
1ff619259f
commit
4620c64dc6
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ object ORSet {
|
|||
}
|
||||
case (ManyVersionVector(lhsVs), ManyVersionVector(rhsVs)) =>
|
||||
val commonDots = lhsVs.filter {
|
||||
case (thisDotNode, v) => rhsVs.get(thisDotNode).exists(_ == v)
|
||||
case (thisDotNode, v) => rhsVs.get(thisDotNode).contains(v)
|
||||
}
|
||||
val commonDotsKeys = commonDots.keys
|
||||
val lhsUniqueDots = lhsVs -- commonDotsKeys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue