fix: resolve clippy issues

This commit is contained in:
objz committed 2026-04-18 17:09:01 +02:00
1 parent eb91c908fc
commit 971375bf1f
18 files changed
+80 -116

No files matched your search

+2 -3
View File
@@ -48,11 +48,10 @@ pub fn resolve_path(raw: &str) -> PathBuf {
if let Some(home) = dirs_next::home_dir() {
return home.join(stripped);
}
} else if raw == "~" {
if let Some(home) = dirs_next::home_dir() {
} else if raw == "~"
&& let Some(home) = dirs_next::home_dir() {
return home;
}
}
PathBuf::from(raw)
}