Skip to content

Commit cf3921b

Browse files
author
Thomas Draier
committed
Removed useless test
1 parent a3d2fde commit cf3921b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/main/java/graphql/annotations/GraphQLAnnotations.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,13 @@ private GraphQLOutputType getGraphQLConnection(AccessibleObject field, GraphQLOu
582582
type = (GraphQLOutputType) ((GraphQLNonNull) type).getWrappedType();
583583
}
584584

585-
if (type instanceof GraphQLList) {
586-
graphql.schema.GraphQLType wrappedType = ((GraphQLList) type).getWrappedType();
587-
assert wrappedType instanceof GraphQLObjectType;
588-
String annValue = field.getAnnotation(GraphQLConnection.class).name();
589-
String connectionName = annValue.isEmpty() ? wrappedType.getName() : annValue;
590-
GraphQLObjectType edgeType = relay.edgeType(connectionName, (GraphQLOutputType) wrappedType, null, Collections.<GraphQLFieldDefinition>emptyList());
591-
type = relay.connectionType(connectionName, edgeType, Collections.emptyList());
592-
builder.argument(relay.getConnectionFieldArguments());
593-
}
585+
graphql.schema.GraphQLType wrappedType = ((GraphQLList) type).getWrappedType();
586+
assert wrappedType instanceof GraphQLObjectType;
587+
String annValue = field.getAnnotation(GraphQLConnection.class).name();
588+
String connectionName = annValue.isEmpty() ? wrappedType.getName() : annValue;
589+
GraphQLObjectType edgeType = relay.edgeType(connectionName, (GraphQLOutputType) wrappedType, null, Collections.<GraphQLFieldDefinition>emptyList());
590+
type = relay.connectionType(connectionName, edgeType, Collections.emptyList());
591+
builder.argument(relay.getConnectionFieldArguments());
594592

595593
if (isNonNull) {
596594
type = new GraphQLNonNull(type);

0 commit comments

Comments
 (0)