fix: improve code readability in GameRecordRepository and GameRedisPublisher
This commit is contained in:
+2
-1
@@ -42,7 +42,8 @@ class GameRecordRepository:
|
|||||||
.asScala
|
.asScala
|
||||||
.toList
|
.toList
|
||||||
.filter { g =>
|
.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
|
g.clockLastTickAt.longValue + remaining < nowMs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user