Skip to content

Commit

Permalink
shortcut true
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Feb 18, 2024
1 parent dd2d3c4 commit ad0c44e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/RDTs/src/main/scala/kofre/time/ArrayRanges.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class ArrayRanges(

override def equals(obj: Any): Boolean = obj match {
case ar: ArrayRanges =>
if inner == ar.inner && used == ar.used then return true
// would be nice to use the following, but does not exists on JS
// util.Arrays.equals(inner, 0, used, ar.inner, 0, ar.used)
val left = inner.iterator.take(used)
Expand Down

0 comments on commit ad0c44e

Please sign in to comment.