From 58cb68566d7937a2633a9945d9b1f54c187fc7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Wed, 28 Feb 2024 18:02:14 +0000 Subject: [PATCH] booleans are hard, mucked around until I found an expression that makes sense to read --- flow/workflows/sync_flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/workflows/sync_flow.go b/flow/workflows/sync_flow.go index efdae0f1a8..6d2c9def50 100644 --- a/flow/workflows/sync_flow.go +++ b/flow/workflows/sync_flow.go @@ -179,7 +179,7 @@ func SyncFlowWorkflow( } }) - for ctx.Err() == nil && (syncErr || !syncDone || selector.HasPending()) { + for ctx.Err() == nil && ((!syncDone && !syncErr) || selector.HasPending()) { selector.Select(ctx) } if ctx.Err() != nil {