summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-10-12 16:12:01 +0200
committerRobin Appelman <robin@icewind.nl>2016-10-12 16:12:40 +0200
commit2de59d8a2a32427654a4ae70146464b7a338c308 (patch)
treefe661e59e0d52843bf8c2fdaa73ecbc3bed6f019
parent1484d01ff623317e6c14c02ad1053b68f30f2622 (diff)
downloadnextcloud-server-2de59d8a2a32427654a4ae70146464b7a338c308.tar.gz
nextcloud-server-2de59d8a2a32427654a4ae70146464b7a338c308.zip
remove unneeded unlock
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_sharing/lib/API/Share20OCS.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/API/Share20OCS.php b/apps/files_sharing/lib/API/Share20OCS.php
index ac9ddc1fffa..8d00d176678 100644
--- a/apps/files_sharing/lib/API/Share20OCS.php
+++ b/apps/files_sharing/lib/API/Share20OCS.php
@@ -414,8 +414,6 @@ class Share20OCS extends OCSController {
throw new OCSException($e->getHint(), $code);
} catch (\Exception $e) {
throw new OCSForbiddenException($e->getMessage());
- } finally {
- $share->getNode()->unlock(ILockingProvider::LOCK_SHARED);
}
$output = $this->formatShare($share);