Skip to content

Commit

Permalink
remove check that can be redundant with semi-surprising but valid con…
Browse files Browse the repository at this point in the history
…figurations of non-conference games
  • Loading branch information
jonahgreenthal committed Oct 18, 2023
1 parent 8b14352 commit 76e6f2a
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ class PacketAssignmentService {
val gamesById: Map<Long, NonConferenceGame> = games.associateBy { it.id!! }

val packetIds = assignments.map { it.packetId!! }
require(packetIds.size == packetIds.distinct().size) { "Repeated packets" }
val packets = packetRepo.findByIdIn(packetIds)
require(packets.size == packetIds.size) { "Invalid packet IDs" }
require(packets.all { it.availableForCompetition == true }) { "Packets not available for competition" }
Expand Down

0 comments on commit 76e6f2a

Please sign in to comment.