Skip to content

Commit f8ec354

Browse files
fix(lint): lift loop condition in scm poller test (staticcheck QF1006)
Inherited from PR #72 merging into staging after this branch opened. golangci-lint v2.12.2 → 0 issues.
1 parent e22a386 commit f8ec354

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

backend/internal/observe/scm/poller_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,7 @@ func TestStartTicksRepeatedly(t *testing.T) {
462462
done := p.Start(ctx)
463463
deadline := time.After(500 * time.Millisecond)
464464
loop:
465-
for {
466-
if ticks.Load() >= 3 {
467-
break
468-
}
465+
for ticks.Load() < 3 {
469466
select {
470467
case <-deadline:
471468
break loop

0 commit comments

Comments
 (0)