From 80dc577080a7edc1c6a868a1466943772622d278 Mon Sep 17 00:00:00 2001 From: Janis Date: Sat, 16 May 2026 13:22:40 +0200 Subject: [PATCH] fix: improve code readability in GameRecordRepository and GameRedisPublisher --- .../de/nowchess/store/repository/GameRecordRepository.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/store/src/main/scala/de/nowchess/store/repository/GameRecordRepository.scala b/modules/store/src/main/scala/de/nowchess/store/repository/GameRecordRepository.scala index 3008d37..12b6283 100644 --- a/modules/store/src/main/scala/de/nowchess/store/repository/GameRecordRepository.scala +++ b/modules/store/src/main/scala/de/nowchess/store/repository/GameRecordRepository.scala @@ -42,7 +42,8 @@ class GameRecordRepository: .asScala .toList .filter { g => - val remaining = if g.clockActiveColor == "white" then g.whiteRemainingMs.longValue else g.blackRemainingMs.longValue + val remaining = + if g.clockActiveColor == "white" then g.whiteRemainingMs.longValue else g.blackRemainingMs.longValue g.clockLastTickAt.longValue + remaining < nowMs }