Turn on promise-function-async and init-declarations and satisfy them with async functions and null-initialized lets

This commit is contained in:
Danny Kim
2026-10-19 19:44:35 +09:00
parent a65bf353ab
commit d879b04e46
14 changed files with 147 additions and 99 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ async function readCodexAuth(path: string): Promise<string> {
throw new Error("Codex login must be private");
}
const text = await readFile(path, "utf8");
let value: unknown;
let value: unknown = null;
try {
value = JSON.parse(text);
} catch {