Skip to content
Snippets Groups Projects
Commit 46dd59f4 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #11751 from owncloud/fix-unreachable-statement

Remove unreachable statement
parents e26a16af c30b7f81
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment