mirror of
https://github.com/labstack/echo.git
synced 2025-09-16 09:16:29 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -364,7 +364,7 @@ func (c *context) SetParamValues(values ...string) {
|
||||
if limit > len(c.pvalues) {
|
||||
c.pvalues = make([]string, limit)
|
||||
}
|
||||
for i := 0; i < limit; i++ {
|
||||
for i := range limit {
|
||||
c.pvalues[i] = values[i]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user