mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00:49 +00:00
Apply manual clippy
This commit is contained in:
parent
b9f6fa7fb8
commit
6458454ba9
4 changed files with 58 additions and 60 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue