From c2982f2a33a4e2cae8a5177364960b143c759242 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 3 Apr 2026 11:31:50 -0300 Subject: [PATCH] fix: remove unused handle variable warning in get_database_url_sync --- src/core/shared/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/shared/utils.rs b/src/core/shared/utils.rs index 9d93a06b..c8f27a41 100644 --- a/src/core/shared/utils.rs +++ b/src/core/shared/utils.rs @@ -53,7 +53,7 @@ pub async fn get_database_url() -> Result { pub fn get_database_url_sync() -> Result { let guard = SECRETS_MANAGER.read().map_err(|e| anyhow::anyhow!("Lock poisoned: {}", e))?; if let Some(ref manager) = *guard { - if let Ok(handle) = tokio::runtime::Handle::try_current() { + if tokio::runtime::Handle::try_current().is_ok() { return tokio::task::block_in_place(|| { let rt = tokio::runtime::Builder::new_current_thread() .enable_all()