MCPcopy Create free account
hub / github.com/GCWing/BitFun / is_expected_config_path_not_found

Function is_expected_config_path_not_found

src/apps/desktop/src/api/config_api.rs:56–63  ·  view source on GitHub ↗
(error: &BitFunError, path: Option<&str>)

Source from the content-addressed store, hash-verified

54}
55
56fn is_expected_config_path_not_found(error: &BitFunError, path: Option<&str>) -> bool {
57 match (error, path) {
58 (BitFunError::NotFound(message), Some(path)) => {
59 message == &format!("Config path '{}' not found", path)
60 }
61 _ => false,
62 }
63}
64
65#[tauri::command]
66pub async fn get_config(

Callers 2

get_configFunction · 0.85
get_configsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected