summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share20/manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index 12893c26964..7a10d6cba55 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -718,9 +718,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');
}