Skip to content

Commit 928bd94

Browse files
Get rid of negation logic
1 parent bc2f6f5 commit 928bd94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

webapp/src/Service/ImportExportService.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ public function getTeamData(): array
455455
}
456456

457457
/**
458-
* Get results data for the given sortorder.
459-
*
460458
* @return ResultRow[]
461459
*/
462460
public function getResultsData(int $sortOrder, bool $full = false): array
@@ -550,9 +548,10 @@ public function getResultsData(int $sortOrder, bool $full = false): array
550548
$rank = null;
551549
}
552550

553-
$groupWinner = null;
554551
$categoryId = $teamScore->team->getCategory()->getCategoryid();
555-
if (!isset($groupWinners[$categoryId])) {
552+
if (isset($groupWinners[$categoryId])) {
553+
$groupWinner = null;
554+
} else {
556555
$groupWinners[$categoryId] = true;
557556
$groupWinner = $teamScore->team->getCategory()->getName();
558557
}

0 commit comments

Comments
 (0)