Skip to content

Commit

Permalink
polish: remove unnecessary Maybe (#3683)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR authored Aug 1, 2022
1 parent 5aadd61 commit 67aefd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/type/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ function getAllImplementsInterfaceNodes(
function getUnionMemberTypeNodes(
union: GraphQLUnionType,
typeName: string,
): Maybe<ReadonlyArray<NamedTypeNode>> {
): ReadonlyArray<NamedTypeNode> {
const { astNode, extensionASTNodes } = union;
const nodes: ReadonlyArray<UnionTypeDefinitionNode | UnionTypeExtensionNode> =
astNode != null ? [astNode, ...extensionASTNodes] : extensionASTNodes;
Expand Down

0 comments on commit 67aefd9

Please sign in to comment.