diff options
Diffstat (limited to 'libgo/go/cmd/gofmt/rewrite.go')
-rw-r--r-- | libgo/go/cmd/gofmt/rewrite.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libgo/go/cmd/gofmt/rewrite.go b/libgo/go/cmd/gofmt/rewrite.go index fb6c6fc811a..d267cfcc1dc 100644 --- a/libgo/go/cmd/gofmt/rewrite.go +++ b/libgo/go/cmd/gofmt/rewrite.go @@ -226,9 +226,6 @@ func match(m map[string]reflect.Value, pattern, val reflect.Value) bool { return true case reflect.Struct: - if p.NumField() != v.NumField() { - return false - } for i := 0; i < p.NumField(); i++ { if !match(m, p.Field(i), v.Field(i)) { return false |