Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be sure to exit from resolved promise deleteIfExists(...) helper
Failing to exit when the specified file path doens't exist means that we try to delete that file even though it doesn't exist. This results in a timing issue because the deletion is asynchronous. Essentially, it might unintentionally delete the file springs into being before the promise is resolved.
- Loading branch information