mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
Fix bug in deepequal
Reported by golangci-lint
This commit is contained in:
@@ -192,7 +192,7 @@ func stringEq(v1, v2 reflect.Value, _ map[visit]bool, _ int) bool { return v1.St
|
||||
|
||||
func normalEq(v1, v2 reflect.Value, _ map[visit]bool, _ int) bool {
|
||||
if v1.CanInterface() && v2.CanInterface() {
|
||||
return v1.Interface() == v1.Interface()
|
||||
return v1.Interface() == v2.Interface()
|
||||
} else if v1.CanInterface() || v2.CanInterface() {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user