Skip to content

Commit cf286a8

Browse files
refactor: fixes compiler warnings
1 parent 0fee9b5 commit cf286a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/GraphQL/Type/Directives.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import OrderedCollections
2+
13
public enum DirectiveLocation: String, Encodable {
24
// Operations
35
case query = "QUERY"

Sources/GraphQL/Validation/Rules/Custom/NoDeprecatedCustomRule.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ public func NoDeprecatedCustomRule(context: ValidationContext) -> Visitor {
5252
}
5353
}
5454
if let node = node as? ObjectField {
55-
let inputObjectDef = context.parentInputType as? GraphQLInputObjectType
56-
5755
if
5856
let inputObjectDef = context.parentInputType as? GraphQLInputObjectType,
5957
let inputFieldDef = inputObjectDef.fields[node.name.value],

0 commit comments

Comments
 (0)