refactor: save unnecessary method_exists

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2023-06-21 20:35:41 +02:00 committed by backportbot-nextcloud[bot]
parent 22c417d70b
commit dfbedda0a2

View 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();