From 0db599a79e93e4393bad198a3b83f359abb41c2f Mon Sep 17 00:00:00 2001 From: Akulij Date: Sun, 1 Jun 2025 17:03:45 +0500 Subject: [PATCH] delete private code --- src/bot_handler.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/bot_handler.rs b/src/bot_handler.rs index 7015652..9704819 100644 --- a/src/bot_handler.rs +++ b/src/bot_handler.rs @@ -1,5 +1,5 @@ use log::{error, info}; -use quickjs_rusty::{serde::to_js, utils::get_exception}; +use quickjs_rusty::serde::to_js; use std::{ str::FromStr, sync::{Arc, Mutex, RwLock}, @@ -162,13 +162,6 @@ async fn handle_callback(bot: Bot, mut db: DB, bm: BotMessage, q: CallbackQuery) ); match handler.call_args(vec![jsuser]) { Ok(v) => { - // let ctx = quickjs_rusty::Context::from(value) - println!("Ok branch, value: {:?}", v); - if v.is_exception() { - let e = get_exception(v.context()); - println!("Exception: {e:?}"); - } - if v.is_bool() { v.to_bool().unwrap_or(true) } else if v.is_int() {