Skip to content

Commit

Permalink
fix scala warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Feb 12, 2025
1 parent 4261c34 commit 04b9ab3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/analyse/src/main/Analyser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class Analyser(
analysis.id match
case Analysis.Id.Game(id) =>
gameRepo.game(id).flatMapz { prev =>
val game = prev.focus(_.metadata.analysed).set(true)
val game = prev.focus(_.metadata.analysed).replace(true)
for
_ <- gameRepo.setAnalysed(game.id, true)
_ <- analysisRepo.save(analysis)
Expand Down
2 changes: 1 addition & 1 deletion modules/fide/src/main/FidePlayerSync.scala
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ final private class FidePlayerSync(repo: FideRepo, ws: StandaloneWSClient)(using
nbAll <- repo.player.countAll
yield
lila.mon.fideSync.updated.update(nbUpdated)
lila.mon.fideSync.players.update(nbAll)
lila.mon.fideSync.players.update(nbAll.toDouble)
logger.info(s"RelayFidePlayerApi.update upserted: $nbUpdated, total: $nbAll")
yield ()

Expand Down
2 changes: 1 addition & 1 deletion modules/fishnet/src/test/TreeBuilderTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ object TreeBuilderTest:
def cleanup: NewBranch =
node
.focus(_.metas.clock)
.set(none)
.replace(none)
.focus(_.metas.comments)
.modify(_.cleanup)

Expand Down
2 changes: 1 addition & 1 deletion modules/relay/src/main/ui/RelayTourUi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ final class RelayTourUi(helpers: Helpers, ui: RelayUi):
lila.ui.bits.mselect(
s"relay-calendar__month--$id",
span(showMonth(at.getMonth)),
java.time.Month.values.map: m =>
java.time.Month.values.toIndexedSeq.map: m =>
a(
cls := (m == at.getMonth).option("current"),
href := url(at.getYear, m)
Expand Down
2 changes: 1 addition & 1 deletion modules/study/src/test/Helpers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ object Helpers:
def cleanup: NewBranch =
node
.focus(_.metas.clock)
.set(none)
.replace(none)
.focus(_.metas.comments)
.modify(_.cleanup)

Expand Down

0 comments on commit 04b9ab3

Please sign in to comment.