refactor: remove path existence indicator from info (#282)

pull/285/head
sigoden 5 months ago committed by GitHub
parent 5b001af50d
commit 89fefb4d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -365,10 +365,7 @@ impl Config {
}
pub fn sys_info(&self) -> Result<String> {
let display_path = |path: &Path| {
let state = if path.exists() { "" } else { " ⚠️" };
format!("{}{state}", path.display())
};
let display_path = |path: &Path| path.display().to_string();
let temperature = self
.temperature
.map_or_else(|| String::from("-"), |v| v.to_string());

Loading…
Cancel
Save