File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -392,19 +392,15 @@ function typeMapReducer(map: TypeMap, type: ?GraphQLType): TypeMap {
392
392
393
393
if ( isUnionType ( namedType ) ) {
394
394
reducedMap = namedType . getTypes ( ) . reduce ( typeMapReducer , reducedMap ) ;
395
- }
396
-
397
- if ( isObjectType ( namedType ) || isInterfaceType ( namedType ) ) {
395
+ } else if ( isObjectType ( namedType ) || isInterfaceType ( namedType ) ) {
398
396
reducedMap = namedType . getInterfaces ( ) . reduce ( typeMapReducer , reducedMap ) ;
399
397
400
398
for ( const field of objectValues ( namedType . getFields ( ) ) ) {
401
399
const fieldArgTypes = field . args . map ( arg => arg . type ) ;
402
400
reducedMap = fieldArgTypes . reduce ( typeMapReducer , reducedMap ) ;
403
401
reducedMap = typeMapReducer ( reducedMap , field . type ) ;
404
402
}
405
- }
406
-
407
- if ( isInputObjectType ( namedType ) ) {
403
+ } else if ( isInputObjectType ( namedType ) ) {
408
404
for ( const field of objectValues ( namedType . getFields ( ) ) ) {
409
405
reducedMap = typeMapReducer ( reducedMap , field . type ) ;
410
406
}
You can’t perform that action at this time.
0 commit comments