Apply manual clippy

This commit is contained in:
Natsu Kagami 2024-08-04 22:42:44 +02:00
parent b9f6fa7fb8
commit 6458454ba9
Signed by: nki
GPG key ID: 55A032EB38B49ADB
4 changed files with 58 additions and 60 deletions

View file

@ -241,7 +241,7 @@ pub async fn paginate_with_first_message(
};
for reaction in reactions {
if let None = reaction.delete_all(&ctx).await.pls_ok() {
if reaction.delete_all(&ctx).await.pls_ok().is_none() {
// probably no permission to delete all reactions, fall back to delete my own.
reaction.delete(&ctx).await.pls_ok();
}