Skip to content

Commit

Permalink
chore: update type
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcosta7 committed Nov 18, 2023
1 parent da3c2aa commit cfd3629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/handlers/GraphQLHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ Consider naming this operation or using "graphql.operation()" request handler to
return false
}

const hasMatchingUrl = !!args.parsedResult.match?.matches

const hasMatchingOperationType =
this.info.operationType === 'all' ||
args.parsedResult.operationType === this.info.operationType
Expand All @@ -185,7 +183,9 @@ Consider naming this operation or using "graphql.operation()" request handler to
: args.parsedResult.operationName === this.info.operationName

return (
hasMatchingUrl && hasMatchingOperationType && hasMatchingOperationName
args.parsedResult.match.matches &&
hasMatchingOperationType &&
hasMatchingOperationName
)
}

Expand Down

0 comments on commit cfd3629

Please sign in to comment.