From 74a9a4cc9fcdc781f63c3f21fe947f01af0c5ebc Mon Sep 17 00:00:00 2001 From: minneelyyyy Date: Tue, 10 Dec 2024 15:26:18 -0500 Subject: [PATCH] remove unecessary second call to get_balance --- src/commands/gambling/shop.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/commands/gambling/shop.rs b/src/commands/gambling/shop.rs index f519053..32bd164 100644 --- a/src/commands/gambling/shop.rs +++ b/src/commands/gambling/shop.rs @@ -68,7 +68,6 @@ pub async fn buy(ctx: Context<'_>, inventory.give_item(&mut *tx, item.clone().inv_item()).await?; } - let balance = super::get_balance(author.id, &mut *tx).await?; super::change_balance(author.id, balance - total, &mut *tx).await?; ctx.reply(format!("You have purchased {count}x {}.", item.name)).await?;