File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/GraphQL/Execution
Tests/GraphQLTests/FieldExecutionStrategyTests Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public struct ConcurrentDispatchFieldExecutionStrategy: QueryFieldExecutionStrat
187
187
. mapValues { _ -> Future < Any > ? in nil }
188
188
var err : Error ?
189
189
190
- fields . forEach { field in
190
+ for field in fields {
191
191
let fieldASTs = field. value
192
192
let fieldKey = field. key
193
193
let fieldPath = path. appending ( fieldKey)
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ class FieldExecutionStrategyTests: XCTestCase {
259
259
XCTAssertEqual ( result. value. data, multiThrowsExpectedData)
260
260
let resultErrors = result. value. errors
261
261
XCTAssertEqual ( resultErrors. count, multiThrowsExpectedErrors. count)
262
- multiThrowsExpectedErrors . forEach { m in
262
+ for m in multiThrowsExpectedErrors {
263
263
XCTAssertTrue ( resultErrors. contains ( m) , " Expecting result errors to contain \( m) " )
264
264
}
265
265
// XCTAssertEqualWithAccuracy(1.0, result.seconds, accuracy: 0.5)
@@ -308,7 +308,7 @@ class FieldExecutionStrategyTests: XCTestCase {
308
308
XCTAssertEqual ( result. value. data, multiThrowsExpectedData)
309
309
let resultErrors = result. value. errors
310
310
XCTAssertEqual ( resultErrors. count, multiThrowsExpectedErrors. count)
311
- multiThrowsExpectedErrors . forEach { m in
311
+ for m in multiThrowsExpectedErrors {
312
312
XCTAssertTrue ( resultErrors. contains ( m) , " Expecting result errors to contain \( m) " )
313
313
}
314
314
// XCTAssertEqualWithAccuracy(0.1, result.seconds, accuracy: 0.25)
You can’t perform that action at this time.
0 commit comments