mirror of
https://github.com/golang/go
synced 2024-11-23 11:10:04 -07:00
reflect: remove length check for arrays in deepValueEqual
R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/39910044
This commit is contained in:
parent
36c8c5f063
commit
c989a0b2f7
@ -62,9 +62,6 @@ func deepValueEqual(v1, v2 Value, visited map[visit]bool, depth int) bool {
|
||||
|
||||
switch v1.Kind() {
|
||||
case Array:
|
||||
if v1.Len() != v2.Len() {
|
||||
return false
|
||||
}
|
||||
for i := 0; i < v1.Len(); i++ {
|
||||
if !deepValueEqual(v1.Index(i), v2.Index(i), visited, depth+1) {
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user