resolve clippy match_bool
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
9d0b647911
commit
0bb5115bd1
4 changed files with 26 additions and 21 deletions
|
@ -1025,12 +1025,13 @@ impl Service {
|
|||
|
||||
if !force {
|
||||
user_ids.retain(|&user_id| match services().users.is_admin(user_id) {
|
||||
Ok(is_admin) => match is_admin {
|
||||
true => {
|
||||
Ok(is_admin) => {
|
||||
if is_admin {
|
||||
admins.push(user_id.localpart());
|
||||
false
|
||||
},
|
||||
false => true,
|
||||
} else {
|
||||
true
|
||||
}
|
||||
},
|
||||
Err(_) => false,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue