fix: mark deliberately unawaited promises with void (Sonar S9383)

This commit is contained in:
Maurice
2026-10-01 14:19:52 +02:00
parent f9baf3395e
commit db4337287b
96 changed files with 160 additions and 160 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export async function fetchImageAsBlob(url: string): Promise<string> {
}
if (active < MAX_CONCURRENT) {
active++
run()
void run()
} else {
queue.push(run)
}
+3 -3
View File
@@ -93,7 +93,7 @@ function scheduleReconnect(): void {
reconnectTimer = setTimeout(() => {
reconnectTimer = null
if (shouldReconnect) {
connectInternal(true)
void connectInternal(true)
}
}, reconnectDelay)
reconnectDelay = Math.min(reconnectDelay * 2, MAX_RECONNECT_DELAY)
@@ -141,7 +141,7 @@ async function connectInternal(_isReconnect = false): Promise<void> {
// Flush queued mutations first so local writes land before server read-back.
// If the hook fails, still refetch to keep the UI correct.
if (preReconnectHook) {
preReconnectHook().catch(console.error).then(doRefetch)
void preReconnectHook().catch(console.error).then(doRefetch)
} else {
doRefetch()
}
@@ -170,7 +170,7 @@ export function connect(): void {
clearTimeout(reconnectTimer)
reconnectTimer = null
}
connectInternal(false)
void connectInternal(false)
}
export function disconnect(): void {