mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-03 01:29:33 +00:00
bug6219: no need to invoke compareByBetterScore if no more than one medal race
This commit is contained in:
1 parent
2d936a6455
commit
3bcb21b3ea
1 file changed
+1
-1
+1
-1
@@ -369,7 +369,7 @@ public interface ScoringScheme extends Serializable {
|
||||
int result;
|
||||
if (o1MedalRaceScore != null) {
|
||||
result = getScoreComparator(nullScoresAreBetter).compare(o1MedalRaceScore, o2MedalRaceScore);
|
||||
if (result == 0) {
|
||||
if (result == 0 && o1ScoringMedalRaces.size() > 1) { // only work calling if more than one scoring medal race
|
||||
result = compareByBetterScore(o1, o1ScoringMedalRaces, o2, o2ScoringMedalRaces,
|
||||
Util.map(o1ScoringMedalRaces, Pair::getA), nullScoresAreBetter, timePoint, leaderboard,
|
||||
discardedRaceColumnsPerCompetitor, totalPointsSupplier, cache);
|
||||
|
||||
Reference in new issue
Block a user