mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
fix: check if cache exists before removing it
This commit is contained in:
@@ -295,7 +295,9 @@ export default class Repository {
|
||||
* @returns
|
||||
*/
|
||||
async removeCache() {
|
||||
return storage.rm(this._model.repoId + "/");
|
||||
if (await storage.exists(this._model.repoId + "/")) {
|
||||
return storage.rm(this._model.repoId + "/");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user