mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-27 02:34:52 -06:00
03623b0056
Replaces NumField()/Field(i) loops with the new range-over-func Fields() iterator, applied via `go fix -stditerators`. Removed the redundant per-iteration shadow copies (e.g. `f := f`) the fixer inserts defensively; none of these loops take the field's address or capture it in a closure, and Go 1.22+ loop variables are already per-iteration. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>