From e60822bf42a5cb8152c475b77d7409481e9156f2 Mon Sep 17 00:00:00 2001 From: Thomas David Baker Date: Tue, 3 Dec 2024 00:46:25 -0800 Subject: [PATCH] Remove checking for falsy Event->id now that it is not nullable --- gatherling/Views/Components/MatchTable.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/gatherling/Views/Components/MatchTable.php b/gatherling/Views/Components/MatchTable.php index 1ab60d6a0..b0e24de46 100644 --- a/gatherling/Views/Components/MatchTable.php +++ b/gatherling/Views/Components/MatchTable.php @@ -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);