fix(user_ldap): Remove redundant if check

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/51305/head
Côme Chilliet 2025-01-30 13:47:09 +07:00 committed by Max
parent f9bb4a7d23
commit 39a1cda8b9
No known key found for this signature in database
GPG Key ID: 2F983D55B444DE52
1 changed files with 1 additions and 3 deletions

@ -159,9 +159,7 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGet
$groups = [];
foreach ($this->backends as $backend) {
$backendGroups = $backend->getUserGroups($uid);
if (is_array($backendGroups)) {
$groups = array_merge($groups, $backendGroups);
}
$groups = array_merge($groups, $backendGroups);
}
return array_values(array_unique($groups));