refactor: clippy warning for empty list

This commit is contained in:
Paul Makles
2023-01-27 16:18:00 +00:00
parent a406e5504d
commit 0afbcc065f

View File

@@ -90,7 +90,7 @@ pub async fn message_send(
if let Some(interactions) = &data.interactions {
if interactions.restrict_reactions {
let disallowed = if let Some(list) = &interactions.reactions {
list.len() == 0
list.is_empty()
} else {
true
};