Skip to content

Commit

Permalink
Fix reursiveDelete promise handling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavies committed Jan 10, 2020
1 parent 7a6b5f3 commit 2c02e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optimize/watch/watch_cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async function recursiveDelete(directory: string) {
: unlinkAsync(absolutePath);

// Ignore errors, if the file or directory doesn't exist.
result.catch(e => {
return result.catch(e => {
if (e.code !== 'ENOENT') {
throw e;
}
Expand Down

0 comments on commit 2c02e9e

Please sign in to comment.