mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user