]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove unreachable statement
authorLukas Reschke <lukas@owncloud.com>
Thu, 23 Oct 2014 21:03:14 +0000 (23:03 +0200)
committerLukas Reschke <lukas@owncloud.com>
Thu, 23 Oct 2014 21:03:14 +0000 (23:03 +0200)
lib/private/share/share.php

index 48b1a53162109b3f732cfec0a9fde8b5688cdab6..b7b05dab8efdbb660744ead58d7715c681172278 100644 (file)
@@ -672,7 +672,6 @@ class Share extends \OC\Share\Constants {
                        $message_t = $l->t('Sharing %s failed, because sharing with links is not allowed', array($itemSourceName));
                        \OC_Log::write('OCP\Share', sprintf($message, $itemSourceName), \OC_Log::ERROR);
                        throw new \Exception($message_t);
-                       return false;
                } else {
                        // Future share types need to include their own conditions
                        $message = 'Share type %s is not valid for %s';