Skip to content

Commit 6a51a37

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

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
@@ -394,10 +394,8 @@ public function searchKnownUsersByDisplayName(string $searcher, string $pattern,
394394
);
395395

396396
}
397-
if (is_array($backendUsers)) {
398-
foreach ($backendUsers as $uid => $displayName) {
399-
$users[] = $this->getUserObject($uid, $backend);
400-
}
397+
foreach ($backendUsers as $uid => $displayName) {
398+
$users[] = $this->getUserObject($uid, $backend);
401399
}
402400
}
403401

0 commit comments

Comments
 (0)