Skip to content

Commit

Permalink
fix a scala equality with different types
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Nov 21, 2024
1 parent ef8b4bc commit fce0585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/study/src/main/Chapter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ case class Chapter(
updateRoot(_.setClockAt(clock, path))
.map(_.updateDenorm)
.map: chapter =>
chapter -> chapter.denorm.map(_.clocks).filter(chapter.denorm != _)
chapter -> chapter.denorm.filter(denorm != _).map(_.clocks)

def forceVariation(force: Boolean, path: UciPath): Option[Chapter] =
updateRoot(_.forceVariationAt(force, path))
Expand Down

0 comments on commit fce0585

Please sign in to comment.