From 3b65867b99ca97726f0b050a2ad4134e242de59f Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Mon, 15 Sep 2025 20:41:29 -0700 Subject: [PATCH] Modernize for loop using range over int in SetParamValues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uses Go 1.22+ range over int syntax for cleaner iteration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index f5dd5a69d..d7a30ccb7 100644 --- a/context.go +++ b/context.go @@ -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] } }