mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-19 15:01:06 +08:00
chore(node-utils): Fix emptyDir promise.
This commit is contained in:
parent
ceafdc8cfc
commit
762df5ffc5
@ -17,7 +17,7 @@
|
||||
import fsExtra from 'fs-extra';
|
||||
|
||||
async function cleanDirectory(dirPath) {
|
||||
await new Promise((resolve) => fsExtra.emptyDir(dirPath, resolve));
|
||||
await fsExtra.emptyDir(dirPath);
|
||||
}
|
||||
|
||||
export default cleanDirectory;
|
||||
|
Loading…
x
Reference in New Issue
Block a user