enable semicolon_if_nothing_returned lint

This commit is contained in:
Charles Hall 2024-05-14 19:01:46 -07:00
parent 96e1877639
commit db4951c5fd
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
14 changed files with 27 additions and 26 deletions

View file

@ -699,11 +699,11 @@ impl Service {
match <&UserId>::try_from(user) {
Ok(user_id) => {
if user_id.server_name() != services().globals.server_name() {
remote_ids.push(user_id)
remote_ids.push(user_id);
} else if !services().users.exists(user_id)? {
non_existant_ids.push(user_id)
non_existant_ids.push(user_id);
} else {
user_ids.push(user_id)
user_ids.push(user_id);
}
}
Err(_) => {
@ -773,12 +773,12 @@ impl Service {
}
}
Err(_) => false,
})
});
}
for &user_id in &user_ids {
if services().users.deactivate_account(user_id).is_ok() {
deactivation_count += 1
deactivation_count += 1;
}
}