[cache] fix invalidation

This commit is contained in:
Andrea Vos 2021-07-10 15:39:13 +02:00
parent 5e042fdfd1
commit 5f4c299381

View File

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