[cache] fix invalidation

This commit is contained in:
Avris 2021-07-10 15:39:13 +02:00
parent 497208bb4b
commit ba5df7e400
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ export class CacheObject {
}
async invalidate() {
fs.unlinkSync(this.path);
if (fs.existsSync(this.path)) {
fs.unlinkSync();
}
}
}