Skip to content

Commit 2c02e9e

Browse files
committed
Fix reursiveDelete promise handling bug
1 parent 7a6b5f3 commit 2c02e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/optimize/watch/watch_cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async function recursiveDelete(directory: string) {
179179
: unlinkAsync(absolutePath);
180180

181181
// Ignore errors, if the file or directory doesn't exist.
182-
result.catch(e => {
182+
return result.catch(e => {
183183
if (e.code !== 'ENOENT') {
184184
throw e;
185185
}

0 commit comments

Comments
 (0)