fix(rust): simplify Pi plugin status handling

This commit is contained in:
lzt404 committed 2026-08-03 14:54:36 +08:00
1 parent b936ea12cd
commit f5fd77fef8
1 file changed
+1 -4
+1 -4
View File
@@ -3200,10 +3200,7 @@ fn inspect_pi_provider_status(home: &Path, port: u16, api_key: &str) -> AgentCon
}]
})
.unwrap_or_default();
let plugin_installed = match pi_provider_package_installed(home) {
Ok(installed) => installed,
Err(_) => false,
};
let plugin_installed = pi_provider_package_installed(home).unwrap_or_default();
let mut errors = Vec::new();
let mut credentials_match = false;
if config_path.is_file() {