Skip to content

Commit

Permalink
Remove checking for falsy Event->id now that it is not nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
bakert committed Dec 3, 2024
1 parent 7f989c1 commit e60822b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gatherling/Views/Components/MatchTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ public function __construct(Player $player, string $selectedFormat, string $sele
$opponent = new Player($opp);

$event = $match->getEvent();
if (!$event->id) {
throw new NotFoundException("Event not found for match {$match->id}", 0, null, 'Event', [$match->id]);
}
$oppRating = $opponent->getRating('Composite', $event->start);
$oppDeck = $opponent->getDeckEvent($event->id);

Expand Down

0 comments on commit e60822b

Please sign in to comment.