forked from Blendman974/faceclaw
Introduce oxlint, and fix lint warnings
This commit is contained in:
1 parent
cb6dddd120
commit
06146c2b08
89 files changed
+818
-469
No files matched your search
@@ -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)) }
|
||||
|
||||
Reference in new issue
Block a user