From 6e325c1ee3496871c809b27196292e5c2a809df3 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:39:14 -0600 Subject: [PATCH] [Bots] Fix unnecessary failed to save timer error (#3788) --- zone/bot_database.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/zone/bot_database.cpp b/zone/bot_database.cpp index 09f49f292..f4dd96816 100644 --- a/zone/bot_database.cpp +++ b/zone/bot_database.cpp @@ -1022,10 +1022,7 @@ bool BotDatabase::DeleteTimers(const uint32 bot_id) return false; } - auto success = BotTimersRepository::DeleteWhere(database, fmt::format("bot_id = {}", bot_id)); - if (!success) { - return false; - } + BotTimersRepository::DeleteWhere(database, fmt::format("bot_id = {}", bot_id)); return true; }