code style fixes and nesting fixes
Version Check / check-version (pull_request) Successful in 3s

This commit is contained in:
nvrl committed 2026-03-18 17:15:24 +01:00
1 parent b3651aa5dd
commit 5056f8dd0a
9 files changed
+46 -66

No files matched your search

+4 -6
View File
@@ -50,12 +50,10 @@ pub fn determine_output_path(input: &Path) -> PathBuf {
if file_name == rule.template_suffix {
return input.with_file_name(rule.active_suffix);
}
} else {
if file_name == rule.template_suffix {
return input.with_file_name(rule.active_suffix);
} else if let Some(base) = file_name.strip_suffix(rule.template_suffix) {
return input.with_file_name(format!("{}{}", base, rule.active_suffix));
}
} else if file_name == rule.template_suffix {
return input.with_file_name(rule.active_suffix);
} else if let Some(base) = file_name.strip_suffix(rule.template_suffix) {
return input.with_file_name(format!("{}{}", base, rule.active_suffix));
}
}