diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-06-21 20:35:41 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-07-07 17:56:05 +0200 |
commit | 5cd984b76b21a10d14ee56520fbe71538e9f5ee2 (patch) | |
tree | 6a0b8c097d932ea4dbb12e380efec1ba411ef592 | |
parent | 2c162694f27e1b57a3b49f1c128242793fbbc894 (diff) | |
download | nextcloud-server-5cd984b76b21a10d14ee56520fbe71538e9f5ee2.tar.gz nextcloud-server-5cd984b76b21a10d14ee56520fbe71538e9f5ee2.zip |
refactor: save unnecessary method_exists
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesReportPlugin.php | 5 |
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(); |