Skip to content

Commit

Permalink
Fix removal in non-existent files
Browse files Browse the repository at this point in the history
  • Loading branch information
xlejo committed Sep 14, 2023
1 parent 2aa9276 commit 1d9e04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ pub(crate) fn apply_diff(
if !opts.skip_removals {
for path in diff.removals.iter() {
destdir
.remove_file(path)
.remove_file_optional(path)
.with_context(|| format!("removing {path}"))?;
}
}
Expand Down

0 comments on commit 1d9e04f

Please sign in to comment.