From 1c3ccbecf52ede03734784880121c20cfd15fbb1 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Mon, 30 Sep 2024 00:12:48 +0100 Subject: [PATCH] fmt: not sure how this one slipped by --- src/commands/role_adder.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/role_adder.rs b/src/commands/role_adder.rs index a740194..bb33667 100644 --- a/src/commands/role_adder.rs +++ b/src/commands/role_adder.rs @@ -201,7 +201,7 @@ pub mod tools { pub async fn on_role_change(db: &Pool, ctx: &Context, mut new_data: Member) { // check if the role changed is part of the oens for this server - if let Some(role_adders) = sqlx::query_as::<_, RoleAdder>( + if let Ok(role_adders) = sqlx::query_as::<_, RoleAdder>( r#" SELECT * FROM roles_adder @@ -211,7 +211,6 @@ pub mod tools { .bind(*new_data.guild_id.as_u64() as i64) .fetch_all(db) .await - .ok() { let mut roles_add = vec![]; let mut roles_remove = vec![];