Skip to content

Commit a361089

Browse files
committed
chore: Remove redundant condition spotted by psalm
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 0483014 commit a361089

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/private/User/Manager.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,8 @@ public function searchKnownUsersByDisplayName(string $searcher, string $pattern,
377377
);
378378

379379
}
380-
if (is_array($backendUsers)) {
381-
foreach ($backendUsers as $uid => $displayName) {
382-
$users[] = $this->getUserObject($uid, $backend);
383-
}
380+
foreach ($backendUsers as $uid => $displayName) {
381+
$users[] = $this->getUserObject($uid, $backend);
384382
}
385383
}
386384

0 commit comments

Comments
 (0)