We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 765c945 commit 5251effCopy full SHA for 5251eff
assert/assertions.go
@@ -1611,8 +1611,8 @@ func prune(a, b *interface{}) {
1611
case []interface{}:
1612
temp := []interface{}{}
1613
1614
- for i, aValue := range aTyped {
1615
- if bArray, ok := (*b).([]interface{}); ok {
+ if bArray, ok := (*b).([]interface{}); ok {
+ for i, aValue := range aTyped {
1616
if len(bArray) > i {
1617
prune(&aValue, &bArray[i])
1618
temp = append(temp, aValue)
0 commit comments