Skip to content

Commit 7914239

Browse files
Appease the linter
1 parent 1ccabfa commit 7914239

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

graphql/schema/gqlschema.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,6 @@ func applyFieldValidations(typ *ast.Definition, field *ast.FieldDefinition) gqle
937937
// query/mutation/update for all the types mentioned in the schema.
938938
// In case of Apollo service Query, input types from queries and mutations
939939
// are excluded due to the limited support currently.
940-
//
941-
//nolint:gocritic // negated conjunction form is clearer than De Morgan for federation checks
942940
func completeSchema(
943941
sch *ast.Schema,
944942
definitions []string,
@@ -1009,17 +1007,20 @@ func completeSchema(
10091007

10101008
// Common types to both Interface and Object.
10111009
// Don't generate reference types for @extends types in Apollo service query
1010+
//nolint:staticcheck // negated conjunction form is clearer than De Morgan for federation checks
10121011
if !(apolloServiceQuery && hasExtends(defn)) {
10131012
addReferenceType(sch, defn, providesTypeMap)
10141013
}
10151014

10161015
// Don't generate mutation input types for @extends types in Apollo service query
1016+
//nolint:staticcheck // negated conjunction form is clearer than De Morgan for federation checks
10171017
if params.generateUpdateMutation && !(apolloServiceQuery && hasExtends(defn)) {
10181018
addPatchType(sch, defn, providesTypeMap)
10191019
addUpdateType(sch, defn)
10201020
addUpdatePayloadType(sch, defn, providesTypeMap)
10211021
}
10221022

1023+
//nolint:staticcheck // negated conjunction form is clearer than De Morgan for federation checks
10231024
if params.generateDeleteMutation && !(apolloServiceQuery && hasExtends(defn)) {
10241025
addDeletePayloadType(sch, defn, providesTypeMap)
10251026
}

0 commit comments

Comments
 (0)