refactor(service): improve daemon executable name matching

- Adjusted the formatting of the name matching logic for the daemon executable in `common.rs` to enhance readability.
- Ensured consistency in the checks for the executable name across different operating systems, maintaining clarity in the codebase.
This commit is contained in:
Steven Enamakel
2026-03-30 21:25:26 -07:00
parent 4058095a94
commit a2c5901468
+2 -2
View File
@@ -48,8 +48,8 @@ pub(crate) fn resolve_daemon_executable() -> Result<PathBuf> {
};
#[cfg(windows)]
let matches =
name.starts_with("openhuman-core-") || name.eq_ignore_ascii_case("openhuman-core.exe");
let matches = name.starts_with("openhuman-core-")
|| name.eq_ignore_ascii_case("openhuman-core.exe");
#[cfg(not(windows))]
let matches = name.starts_with("openhuman-core-") || name == "openhuman-core";