summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-21 20:35:41 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-07-07 14:54:57 +0000
commitdfbedda0a221670fb9e69bd4d90a7d3354e9fce7 (patch)
tree8b60c2480fe7792c8fa39cf18d213b71e97bc046
parent22c417d70bbf0d610866109e8f85248db8ee2ba6 (diff)
downloadnextcloud-server-dfbedda0a221670fb9e69bd4d90a7d3354e9fce7.tar.gz
nextcloud-server-dfbedda0a221670fb9e69bd4d90a7d3354e9fce7.zip
refactor: save unnecessary method_exists
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 1b66dee1896..6122ba1bfe7 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -336,10 +336,7 @@ class FilesReportPlugin extends ServerPlugin {
// type check to ensure searchBySystemTag is available, it is not
// exposed in API yet
- if (
- !empty($systemTagIds)
- && (method_exists($this->userFolder, 'searchBySystemTag'))
- ) {
+ if (!empty($systemTagIds)) {
$tags = $this->tagManager->getTagsByIds($systemTagIds, $this->userSession->getUser());
foreach ($tags as $tag) {
$tagName = $tag->getName();