From 4bdf46bdfc66cfa11de3cae4439cf6607c89953a Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 3 Apr 2026 12:16:08 -0300 Subject: [PATCH] fix: use Result instead Option for runtime builder in get_work_path --- src/core/shared/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/shared/utils.rs b/src/core/shared/utils.rs index 372895cf..a2d39464 100644 --- a/src/core/shared/utils.rs +++ b/src/core/shared/utils.rs @@ -92,9 +92,9 @@ pub fn get_work_path() -> String { .enable_all() .build(); let result = match rt { - Some(rt) => rt.block_on(sm.get_value("gbo/app", "work_path")) + Ok(rt) => rt.block_on(sm.get_value("gbo/app", "work_path")) .unwrap_or_else(|_| "./work".to_string()), - None => "./work".to_string(), + Err(_) => "./work".to_string(), }; let _ = tx.send(result); });