]> source.dussan.org Git - nextcloud-server.git/commitdiff
refactor: save unnecessary method_exists
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 21 Jun 2023 18:35:41 +0000 (20:35 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 21 Jun 2023 18:35:41 +0000 (20:35 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/dav/lib/Connector/Sabre/FilesReportPlugin.php

index 1b66dee18966269845acefaa20d36d8c75aae185..6122ba1bfe717314edd1be38b1f9166625cef3de 100644 (file)
@@ -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();