Skip to content

Commit 3b65867

Browse files
vishrclaude
andcommitted
Modernize for loop using range over int in SetParamValues
Uses Go 1.22+ range over int syntax for cleaner iteration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f1ebc67 commit 3b65867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (c *context) SetParamValues(values ...string) {
364364
if limit > len(c.pvalues) {
365365
c.pvalues = make([]string, limit)
366366
}
367-
for i := 0; i < limit; i++ {
367+
for i := range limit {
368368
c.pvalues[i] = values[i]
369369
}
370370
}

0 commit comments

Comments
 (0)