From 0f7218aa1a0b4e2db084c132f0551098597a25ea Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Thu, 23 Oct 2025 17:04:14 +0700 Subject: [PATCH] fix(lib/storage): only call `get` after `delete` if already loaded --- lib/storage/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }