chore(fmt): adopt go fix's range-over-int in two loops

task check's fmt pass rewrites both, so the committed tree was not
fmt-canonical. Adopted verbatim, per the repository's rule that formatting
changes from the configured formatter are law.
This commit is contained in:
sam committed 2026-09-23 03:33:32 +10:00
1 parent b995eac1e1
commit 2ef281086c
2 files changed
+2 -2

No files matched your search

@@ -112,7 +112,7 @@ func (c *Client) Publish(ctx context.Context, a Artifact) (string, error) {
const attempts = 4 // the initial attempt plus three retries
var lastErr error
for attempt := 0; attempt < attempts; attempt++ {
for attempt := range attempts {
if attempt > 0 {
select {
case <-ctx.Done():
+1 -1
View File
@@ -553,7 +553,7 @@ func TestEventsSincePagesIdenticalTimestampsWithoutSkipOrRepeat(t *testing.T) {
at := time.Date(2026, 1, 1, 0, 0, 0, 0, time.UTC)
const total = 50
inserted := make(map[int64]string, total)
for i := 0; i < total; i++ {
for i := range total {
detail := fmt.Sprintf("event-%d", i)
id, err := s.InsertEvent(ctx, events.Event{Kind: "log", At: at, Detail: detail})
if err != nil {