diff --git a/lib/storage/src/index.ts b/lib/storage/src/index.ts index 4fa891c..2ded10a 100644 --- a/lib/storage/src/index.ts +++ b/lib/storage/src/index.ts @@ -42,7 +42,7 @@ export function Storage( this.delete = async function () { await FileModule.removeFile(directory, path) const success = !(await this.exists()) - if (success) await this.get() + if (this.loaded && success) await this.get() return success }