We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c028d3c commit f2ba02bCopy full SHA for f2ba02b
pointers.go
@@ -118,8 +118,7 @@ func (pv *pointerVisitor) consider(v reflect.Value) {
118
// Now descend into any children of this value
119
switch v.Kind() {
120
case reflect.Slice, reflect.Array:
121
- numEntries := v.Len()
122
- for i := 0; i < numEntries; i++ {
+ for i := 0; i < v.Len(); i++ {
123
pv.consider(v.Index(i))
124
}
125
0 commit comments