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.
This commit is contained in:
Maurice
2026-10-08 14:53:13 +02:00
parent 67aff332a7
commit 5aa9ac8529
+1 -1
View File
@@ -287,7 +287,7 @@ export const mutationQueue = {
*/
flush(): Promise<void> {
if (isEffectivelyOffline() || !isAuthed()) return Promise.resolve()
if (_flushRun) {
if (_flushRun !== null) {
_flushAgain = true
return _flushRun
}