Update lib/GroupManager.php

Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>

Co-authored-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Jonathan Treffler 2021-09-29 12:50:17 +02:00 committed by Jonathan Treffler
parent d6b46bf055
commit eca9e26e39

View file

@ -114,7 +114,7 @@ class GroupManager
}
}
public function removeGroup(IUser $user, string $gid) {
public function removeGroup(IUser $user, string $gid): void {
$group = $this->groupManager->get($gid);
if($group === null) {
return;