size tweaks
parent
f89b162533
commit
2b31c5dc99
|
@ -116,7 +116,7 @@ case class Game(
|
|||
val pairs = clocks.iterator zip clocks.iterator.drop(1)
|
||||
|
||||
// We need to determine if this color's last clock had inc applied.
|
||||
// if finished and history.sizeIs == playedTurns then game was ended
|
||||
// if finished and history.size == playedTurns then game was ended
|
||||
// by a players move, such as with mate or autodraw. In this case,
|
||||
// the last move of the game, and the only one without inc, is the
|
||||
// last entry of the clock history for !turnColor.
|
||||
|
@ -244,7 +244,7 @@ case class Game(
|
|||
else
|
||||
copy(
|
||||
status = Status.Started,
|
||||
mode = Mode(mode.rated && userIds.distinct.sizeIs == 2)
|
||||
mode = Mode(mode.rated && userIds.distinct.size == 2)
|
||||
)
|
||||
|
||||
def startClock =
|
||||
|
|
|
@ -183,7 +183,7 @@ final class ReportApi(
|
|||
userRepo.byId(userId) zip
|
||||
getLichessReporter zip
|
||||
findRecent(1, selectRecent(SuspectId(userId), Reason.Playbans)) flatMap {
|
||||
case Some(abuser) ~ reporter ~ past if past.sizeIs < 1 =>
|
||||
case Some(abuser) ~ reporter ~ past if past.isEmpty =>
|
||||
create(
|
||||
Candidate(
|
||||
reporter = reporter,
|
||||
|
|
Loading…
Reference in New Issue