Skip to content

Commit

Permalink
Only delete empty goldenfiles if they exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
calder committed Apr 16, 2024
1 parent f44e341 commit 69e4c57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl Mint {
fs::copy(&new, &old).unwrap_or_else(|err| {
panic!("Error copying {:?} to {:?}: {:?}", &new, &old, err)
});
} else {
} else if old.exists() {
std::fs::remove_file(&old).unwrap();
}
}
Expand Down

0 comments on commit 69e4c57

Please sign in to comment.