From dfbedda0a221670fb9e69bd4d90a7d3354e9fce7 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 21 Jun 2023 20:35:41 +0200 Subject: [PATCH] refactor: save unnecessary method_exists Signed-off-by: Arthur Schiwon --- apps/dav/lib/Connector/Sabre/FilesReportPlugin.php | 5 +---- 1 file changed, 1 insertion(+), 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();