We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ebf270 + 1154997 commit f2b39caCopy full SHA for f2b39ca
schema.go
@@ -92,10 +92,8 @@ func NewSchema(config SchemaConfig) (Schema, error) {
92
initialTypes = append(initialTypes, SchemaType)
93
}
94
95
- for _, ttype := range config.Types {
96
- // assume that user will never add a nil object to config
97
- initialTypes = append(initialTypes, ttype)
98
- }
+ // assume that user will never add a nil object to config
+ initialTypes = append(initialTypes, config.Types...)
99
100
for _, ttype := range initialTypes {
101
if ttype.Error() != nil {
0 commit comments