[Update] - adding catch block on promise for windows error (#1659)

This commit is contained in:
༺ LᴇG̸ᴇɴD ༻
2022-08-18 14:26:46 -03:00
committed by GitHub
parent 705d4d31fd
commit 62623347e8

View File

@@ -178,9 +178,9 @@ class RemoteAuth extends BaseAuthStrategy {
await fs.promises.rm(dirElement, {
recursive: true,
force: true
});
}).catch(() => {});
} else {
await fs.promises.unlink(dirElement);
await fs.promises.unlink(dirElement).catch(() => {});
}
}
}