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 {
392392
393393 if ( isUnionType ( namedType ) ) {
394394 reducedMap = namedType . getTypes ( ) . reduce ( typeMapReducer , reducedMap ) ;
395- }
396-
397- if ( isObjectType ( namedType ) || isInterfaceType ( namedType ) ) {
395+ } else if ( isObjectType ( namedType ) || isInterfaceType ( namedType ) ) {
398396 reducedMap = namedType . getInterfaces ( ) . reduce ( typeMapReducer , reducedMap ) ;
399397
400398 for ( const field of objectValues ( namedType . getFields ( ) ) ) {
401399 const fieldArgTypes = field . args . map ( arg => arg . type ) ;
402400 reducedMap = fieldArgTypes . reduce ( typeMapReducer , reducedMap ) ;
403401 reducedMap = typeMapReducer ( reducedMap , field . type ) ;
404402 }
405- }
406-
407- if ( isInputObjectType ( namedType ) ) {
403+ } else if ( isInputObjectType ( namedType ) ) {
408404 for ( const field of objectValues ( namedType . getFields ( ) ) ) {
409405 reducedMap = typeMapReducer ( reducedMap , field . type ) ;
410406 }
You can’t perform that action at this time.
0 commit comments