Skip to content

Commit d30d0c7

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

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
@@ -378,10 +378,8 @@ public function searchKnownUsersByDisplayName(string $searcher, string $pattern,
378378
);
379379

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

0 commit comments

Comments
 (0)