@@ -440,9 +440,7 @@ export function extendSchemaImpl(
440
440
} {
441
441
const opTypes = { } ;
442
442
for ( const node of nodes ) {
443
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
444
- const operationTypesNodes =
445
- /* c8 ignore next */ node . operationTypes ?? [ ] ;
443
+ const operationTypesNodes = node . operationTypes ?? [ ] ;
446
444
447
445
for ( const operationType of operationTypesNodes ) {
448
446
// Note: While this could make early assertions to get the correctly
@@ -498,8 +496,7 @@ export function extendSchemaImpl(
498
496
) : GraphQLFieldConfigMap < unknown , unknown > {
499
497
const fieldConfigMap = Object . create ( null ) ;
500
498
for ( const node of nodes ) {
501
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
502
- const nodeFields = /* c8 ignore next */ node . fields ?? [ ] ;
499
+ const nodeFields = node . fields ?? [ ] ;
503
500
504
501
for ( const field of nodeFields ) {
505
502
fieldConfigMap [ field . name . value ] = {
@@ -520,8 +517,7 @@ export function extendSchemaImpl(
520
517
function buildArgumentMap (
521
518
args : Maybe < ReadonlyArray < InputValueDefinitionNode > > ,
522
519
) : GraphQLFieldConfigArgumentMap {
523
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
524
- const argsNodes = /* c8 ignore next */ args ?? [ ] ;
520
+ const argsNodes = args ?? [ ] ;
525
521
526
522
const argConfigMap = Object . create ( null ) ;
527
523
for ( const arg of argsNodes ) {
@@ -548,8 +544,7 @@ export function extendSchemaImpl(
548
544
) : GraphQLInputFieldConfigMap {
549
545
const inputFieldMap = Object . create ( null ) ;
550
546
for ( const node of nodes ) {
551
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
552
- const fieldsNodes = /* c8 ignore next */ node . fields ?? [ ] ;
547
+ const fieldsNodes = node . fields ?? [ ] ;
553
548
554
549
for ( const field of fieldsNodes ) {
555
550
// Note: While this could make assertions to get the correctly typed
@@ -574,8 +569,7 @@ export function extendSchemaImpl(
574
569
) : GraphQLEnumValueConfigMap {
575
570
const enumValueMap = Object . create ( null ) ;
576
571
for ( const node of nodes ) {
577
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
578
- const valuesNodes = /* c8 ignore next */ node . values ?? [ ] ;
572
+ const valuesNodes = node . values ?? [ ] ;
579
573
580
574
for ( const value of valuesNodes ) {
581
575
enumValueMap [ value . name . value ] = {
@@ -601,8 +595,7 @@ export function extendSchemaImpl(
601
595
// validation with validateSchema() will produce more actionable results.
602
596
// @ts -expect-error
603
597
return nodes . flatMap (
604
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
605
- ( node ) => /* c8 ignore next */ node . interfaces ?. map ( getNamedType ) ?? [ ] ,
598
+ ( node ) => node . interfaces ?. map ( getNamedType ) ?? [ ] ,
606
599
) ;
607
600
}
608
601
@@ -614,8 +607,7 @@ export function extendSchemaImpl(
614
607
// validation with validateSchema() will produce more actionable results.
615
608
// @ts -expect-error
616
609
return nodes . flatMap (
617
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
618
- ( node ) => /* c8 ignore next */ node . types ?. map ( getNamedType ) ?? [ ] ,
610
+ ( node ) => node . types ?. map ( getNamedType ) ?? [ ] ,
619
611
) ;
620
612
}
621
613
0 commit comments