[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
commit 62623347e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(() => {});
}
}
}