Skip to content

Commit

Permalink
reference
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Nov 30, 2023
1 parent 87fac3c commit 587f112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/updater/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ impl Update {
}

// if something went wrong during the extraction, we should restore previous app
if let Err(e) = extract_archive(archive, self.extract_path) {
if let Err(e) = extract_archive(archive, &self.extract_path) {
std::fs::remove_dir(self.extract_path)?;
std::fs::rename(tmp_dir.path(), &self.extract_path)?;
return Err(e);
Expand Down

0 comments on commit 587f112

Please sign in to comment.