Skip to content

Commit

Permalink
I hate this
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Nov 30, 2023
1 parent d900d3e commit e313e53
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 @@ -786,7 +786,7 @@ impl Update {

// if something went wrong during the extraction, we should restore previous app
if let Err(e) = extract_archive(&mut archive, &self.extract_path) {
std::fs::remove_dir(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 e313e53

Please sign in to comment.