diff --git a/schema.go b/schema.go index 53971645..35609776 100644 --- a/schema.go +++ b/schema.go @@ -289,9 +289,7 @@ func typeMapReducer(schema *Schema, typeMap TypeMap, objectType Type) (TypeMap, return typeMapReducer(schema, typeMap, objectType.OfType) } case *Object: - if objectType.err != nil { - return typeMap, objectType.err - } + return typeMap, objectType.err } if mappedObjectType, ok := typeMap[objectType.Name()]; ok {