This commit is contained in:
1 parent
b3651aa5dd
commit
5056f8dd0a
9 files changed
+46
-66
No files matched your search
+4
-6
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user