Skip to content

Commit

Permalink
Remove excessive invariants (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jan 10, 2019
1 parent 0818c18 commit 9f85d51
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/error/__tests__/printError-test.js
Expand Up @@ -77,7 +77,6 @@ describe('printError', () => {
invariant(opB && opB.kind === Kind.OBJECT_TYPE_DEFINITION && opB.fields);
const fieldB = opB.fields[0];

invariant(fieldA && fieldB);
const error = new GraphQLError('Example error with two nodes', [
fieldA.type,
fieldB.type,
Expand Down
1 change: 0 additions & 1 deletion src/utilities/__tests__/getOperationRootType-test.js
Expand Up @@ -88,7 +88,6 @@ describe('getOperationRootType', () => {
mutationNode,
subscriptionNode,
] = schemaNode.operationTypes;
invariant(queryNode && mutationNode && subscriptionNode);

expect(getOperationRootType(testSchema, queryNode)).to.equal(queryType);
expect(getOperationRootType(testSchema, mutationNode)).to.equal(
Expand Down

0 comments on commit 9f85d51

Please sign in to comment.