Skip to content

Commit

Permalink
safe to rm temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
shalldie committed Nov 7, 2024
1 parent 280378b commit 6b63596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/PatchFile/PatchFile.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export abstract class AbsPatchFile {
await vscode.window.showErrorMessage(e.message);
return false;
} finally {
await fs.promises.rm(tempFilePath);
await fs.promises.rm(tempFilePath, { force: true });
}
}
}
Expand Down

0 comments on commit 6b63596

Please sign in to comment.