Skip to content

Commit 78bb6af

Browse files
chore: swiftformat updates
1 parent b934bb2 commit 78bb6af

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

Sources/Graphiti/Argument/Argument.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import GraphQL
22

33
public class Argument<ArgumentsType: Decodable, ArgumentType>: ArgumentComponent<ArgumentsType> {
44
let name: String
5-
var defaultValue: AnyEncodable? = nil
5+
var defaultValue: AnyEncodable?
66

77
override func argument(
88
typeProvider: TypeProvider,

Sources/Graphiti/Argument/ArgumentComponent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import GraphQL
22

33
public class ArgumentComponent<ArgumentsType: Decodable> {
4-
var description: String? = nil
4+
var description: String?
55

66
func argument(
77
typeProvider _: TypeProvider,

Sources/Graphiti/Federation/Queries.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ func entitiesQuery(
2020
type: GraphQLNonNull(GraphQLList(entityType)),
2121
description: "Return all entities matching the provided representations.",
2222
args: [
23-
"representations": GraphQLArgument(type: GraphQLNonNull(GraphQLList(GraphQLNonNull(anyType)))),
23+
"representations": GraphQLArgument(
24+
type: GraphQLNonNull(GraphQLList(GraphQLNonNull(anyType)))
25+
),
2426
],
2527
resolve: { source, args, context, info in
2628
let arguments = try coders.decoder.decode(EntityArguments.self, from: args)

Sources/Graphiti/Schema/SchemaTypeProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class SchemaTypeProvider: TypeProvider {
1717

1818
var federatedTypes: [GraphQLObjectType] = []
1919
var federatedResolvers: [String: GraphQLFieldResolve] = [:]
20-
var federatedSDL: String? = nil
20+
var federatedSDL: String?
2121

2222
var query: GraphQLObjectType?
2323
var mutation: GraphQLObjectType?

Tests/GraphitiTests/SchemaTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class SchemaTests: XCTestCase {
142142
struct TestResolver {}
143143

144144
do {
145-
let _ = try Schema<TestResolver, NoContext> {
145+
_ = try Schema<TestResolver, NoContext> {
146146
Type(User.self) {
147147
Field("id", at: \.id)
148148
}

0 commit comments

Comments
 (0)