From 5aa9ac85299e220859f6e6f7cf241d5a42b15999 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 8 Oct 2026 14:53:13 +0200 Subject: [PATCH] fix(client): compare the running flush with null instead of testing a promise _flushRun holds the running pass or null. Testing it as a boolean is correct but reads like a forgotten await, and SonarCloud counts it as a reliability bug (S6544). The explicit comparison says what is meant. --- client/src/sync/mutationQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/sync/mutationQueue.ts b/client/src/sync/mutationQueue.ts index e30d3e31b..25dfd9ffb 100644 --- a/client/src/sync/mutationQueue.ts +++ b/client/src/sync/mutationQueue.ts @@ -287,7 +287,7 @@ export const mutationQueue = { */ flush(): Promise { if (isEffectivelyOffline() || !isAuthed()) return Promise.resolve() - if (_flushRun) { + if (_flushRun !== null) { _flushAgain = true return _flushRun }