Turn on promise-function-async and init-declarations and satisfy them with async functions and null-initialized lets
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user