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); });