chore: cleanup code

This commit is contained in:
Zomatree
2025-08-04 03:20:08 +01:00
parent 10c9682bba
commit a770d5822a
4 changed files with 32 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ pub async fn remove_member(
return Err(create_error!(CannotRemoveYourself));
}
if !recipients.iter().any(|x| *x == member.id) {
if !recipients.contains(&member.id) {
return Err(create_error!(NotInGroup));
}