From 2c92571ffec506d055a4be34ac978270a24c04a6 Mon Sep 17 00:00:00 2001 From: winniepukki <4bogaa25@solent.ac.uk> Date: Thu, 21 Jan 2021 22:09:05 +0200 Subject: [PATCH] Resolved comment on throwing an entity exception --- src/Model/Resolver/EntityUrl.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Model/Resolver/EntityUrl.php b/src/Model/Resolver/EntityUrl.php index 802ed08..132f656 100644 --- a/src/Model/Resolver/EntityUrl.php +++ b/src/Model/Resolver/EntityUrl.php @@ -143,7 +143,6 @@ public function resolve( try { $isInStock = $this->stockItemRepository->get($id)->getIsInStock(); - throw new NoSuchEntityException(); } catch (NoSuchEntityException $e) { // Ignoring error is safe }