From ee080a9bc319aa4ef1cfe264068a4ae932bf7747 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 11 Feb 2016 10:51:58 +0100 Subject: [PATCH] Do not getShare in deleteShare, it's already there when deleting --- lib/private/share20/manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php index c13bf96567..120b9dd69d 100644 --- a/lib/private/share20/manager.php +++ b/lib/private/share20/manager.php @@ -695,9 +695,9 @@ class Manager implements IManager { * @throws \InvalidArgumentException */ public function deleteShare(\OCP\Share\IShare $share) { - // Just to make sure we have all the info + try { - $share = $this->getShareById($share->getFullId()); + $share->getFullId(); } catch (\UnexpectedValueException $e) { throw new \InvalidArgumentException('Share does not have a full id'); }