Skip to content

Commit 4c13a61

Browse files
committed
cleanup: remove assert statements and author comments
1 parent da59262 commit 4c13a61

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

src/main/java/graphql/execution/batched/BatchedExecutionStrategy.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ private List<GraphQLExecutionNodeValue> fetchData(ExecutionContext executionCont
312312
log.warn("Exception while fetching data", e);
313313
handleDataFetchingException(executionContext, fieldDef, argumentValues, e);
314314
}
315-
assert nodeData.size() == values.size();
316315

317316
List<GraphQLExecutionNodeValue> retVal = new ArrayList<>();
318317
for (int i = 0; i < nodeData.size(); i++) {

src/main/java/graphql/execution/batched/UnbatchedDataFetcher.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class UnbatchedDataFetcher implements BatchedDataFetcher {
1818
private final DataFetcher delegate;
1919

2020
public UnbatchedDataFetcher(DataFetcher delegate) {
21-
assert !(delegate instanceof BatchedDataFetcher);
2221
this.delegate = delegate;
2322
}
2423

src/main/java/graphql/validation/rules/LoneAnonymousOperation.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
import graphql.language.OperationDefinition;
55
import graphql.validation.AbstractRule;
66
import graphql.validation.ValidationContext;
7-
import graphql.validation.ValidationErrorCollector;
87
import graphql.validation.ValidationError;
8+
import graphql.validation.ValidationErrorCollector;
99
import graphql.validation.ValidationErrorType;
1010

11-
/**
12-
* Created by Exbeinfo on 2/7/2017.
13-
*/
1411
public class LoneAnonymousOperation extends AbstractRule {
1512

1613
boolean hasAnonymousOp = false;

src/test/groovy/graphql/execution/batched/GraphqlExecutionSpec.groovy

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import spock.lang.Specification
1212

1313
import java.util.concurrent.atomic.AtomicInteger
1414

15-
/**
16-
* Created by dcohen on 1/4/16.
17-
*/
1815
class GraphqlExecutionSpec extends Specification {
1916

2017
private GraphQLSchema schema = new FunWithStringsSchemaFactory().createSchema();

0 commit comments

Comments
 (0)