From 67e0697b6ba70f949148f9ee1617dc5d6779f687 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Fri, 16 May 2025 22:30:05 +0200 Subject: [PATCH] Code review --- .../pairgoth/pairing/BasePairingHelper.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt index 3394789..e15bc8e 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt @@ -74,14 +74,14 @@ abstract class BasePairingHelper( }.toMap() } - // number of players in the biggest club and the biggest country - // this can be used to disable geocost if there is a majority of players from the same country or club - protected val biggestClubSize by lazy { - pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! - } - protected val biggestCountrySize by lazy { - pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! - } + // number of players in the biggest club and the biggest country + // this can be used to disable geocost if there is a majority of players from the same country or club + protected val biggestClubSize by lazy { + pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! + } + protected val biggestCountrySize by lazy { + pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! + } // already paired players map protected fun Pairable.played(other: Pairable) = historyHelper.playedTogether(this, other)