From 92c3dc4a851ace9123eedc4b71de991f3b22ea1b Mon Sep 17 00:00:00 2001 From: Max Koon <22125083+k2on@users.noreply.github.com> Date: Tue, 18 Nov 2025 12:56:33 -0500 Subject: [PATCH] chore(tui): clean up comments --- apps/tui/src/store.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/tui/src/store.ts b/apps/tui/src/store.ts index 658e04e..f4800fa 100644 --- a/apps/tui/src/store.ts +++ b/apps/tui/src/store.ts @@ -7,10 +7,6 @@ type StoreProvider = ZeroOptions["kvStore"]; const DATA_DIR = config.dir; -// async function ensureDir() { -// await fs.mkdir(DATA_DIR, { recursive: true }); -// } -// function deepFreeze(obj: T): T { if (obj && typeof obj === "object" && !Object.isFrozen(obj)) { Object.freeze(obj); @@ -22,7 +18,6 @@ function deepFreeze(obj: T): T { } async function loadFile(name: string): Promise> { - // await ensureDir(); const filePath = path.join(DATA_DIR, `${name}.json`); try { const buf = await fs.readFile(filePath, "utf8"); @@ -40,7 +35,6 @@ async function loadFile(name: string): Promise> { } async function saveFile(name: string, data: Map) { - // await ensureDir(); const filePath = path.join(DATA_DIR, `${name}.json`); const obj = Object.fromEntries(data.entries()); await fs.writeFile(filePath, JSON.stringify(obj, null, 2), "utf8"); @@ -128,7 +122,6 @@ export const kvStore: StoreProvider = { }, async drop(name: string) { - // await ensureDir(); const filePath = path.join(DATA_DIR, `${name}.json`); await fs.rm(filePath, { force: true }); console.log("destroy db:", name);