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:
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():
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user