diff options
author | dartcafe <github@dartcafe.de> | 2022-09-12 17:48:05 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-09-12 17:48:05 +0300 |
commit | 591cc20559d838bf7ca9e2d632e2385907f8d119 (patch) | |
tree | afb8558751ad79b0035dcdebc38a0d0bf4bdfa33 | |
parent | 771549a5a09e4d425e562d40e8b8cfc66c244ae3 (diff) |
late deliverydep/composer-move-deps-global
Signed-off-by: dartcafe <github@dartcafe.de>
-rw-r--r-- | lib/Service/SubscriptionService.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index 6663c2a9..6f8a3622 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -23,7 +23,6 @@ namespace OCA\Polls\Service; -use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use OCA\Polls\Db\Subscription; use OCA\Polls\Db\SubscriptionMapper; use OCA\Polls\Model\Acl; @@ -66,9 +65,6 @@ class SubscriptionService { } else { try { $this->add($acl->getPollId(), $acl->getUserId()); - } catch (UniqueConstraintViolationException $e) { - // deprecated NC22 - // catch silently (assume already subscribed) } catch (Exception $e) { if ($e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) { // catch silently (assume already subscribed) |