style: fix clippy

This commit is contained in:
andy.boot
2025-10-06 20:18:12 +01:00
parent 968377eebd
commit 67d23e80ff
3 changed files with 57 additions and 55 deletions
+4 -4
View File
@@ -269,10 +269,10 @@ pub fn get_config(conf_path: Option<&String>) -> Config {
None => {
if let Some(home) = directories::BaseDirs::new() {
for path in get_config_locations(home.home_dir()) {
if path.exists() {
if let Ok(config) = Config::from_config_file(&path) {
return config;
}
if path.exists()
&& let Ok(config) = Config::from_config_file(&path)
{
return config;
}
}
}