Skip to content

Commit 68a4e2c

Browse files
committed
feat: use del asyncrhonously
1 parent dfdacad commit 68a4e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cleanup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function cleanupTempFiles(): Promise<void> {
77
for (const file of files) {
88
if (file.endsWith('.tmp') === true || file.startsWith('OSL_PIPE')) {
99
try {
10-
del.sync([`/tmp/${file}`, `/tmp/${file}/*`], {force: true});
10+
await del([`/tmp/${file}`, `/tmp/${file}/*`], {force: true});
1111
// eslint-disable-next-line no-empty
1212
} catch (error) {}
1313
}

0 commit comments

Comments
 (0)