Introduce oxlint, and fix lint warnings

This commit is contained in:
James Babcock committed 2026-09-29 11:54:22 -07:00
1 parent cb6dddd120
commit 06146c2b08
89 files changed
+818 -469

No files matched your search

+2 -1
View File
@@ -14,7 +14,8 @@ export function scanQrCode(): Promise<string | null> {
if (settled) return
settled = true
if (activeScanner === scanner) activeScanner = null
error ? reject(new Error(String(error))) : resolve(text == null ? null : String(text))
if (error) reject(new Error(String(error)))
else resolve(text == null ? null : String(text))
}
try { scanner.startWithCompletion(finish) }
catch (error) { finish(null, String(error)) }