Skip to content

Commit

Permalink
Resolved comment on throwing an entity exception
Browse files Browse the repository at this point in the history
  • Loading branch information
winniepukki committed Jan 21, 2021
1 parent 4fcb4b1 commit 2c92571
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Model/Resolver/EntityUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public function resolve(

try {
$isInStock = $this->stockItemRepository->get($id)->getIsInStock();
throw new NoSuchEntityException();
} catch (NoSuchEntityException $e) {
// Ignoring error is safe
}
Expand Down

0 comments on commit 2c92571

Please sign in to comment.