]> source.dussan.org Git - nextcloud-server.git/commit
Remove unneeded calls to "ShareManager::shareProviderExists()"
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 25 Oct 2019 08:15:50 +0000 (10:15 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 25 Oct 2019 19:39:49 +0000 (21:39 +0200)
commit0599536c823eeea76217036a41a891345ff39c28
treec4f8c267a5cf311ce9847ccb7a4c56a8ca373bbf
parent52870fd1d24caba10726c95e266b876394e9dbf2
Remove unneeded calls to "ShareManager::shareProviderExists()"

"ShareManager::getSharesBy()" already checks if the share provider
exists before returning the shares and, if the provider does not exist,
it returns an empty array. Therefore it is not needed to explicitly
check if the provider exists or not.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/files_sharing/lib/Controller/ShareAPIController.php
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php