Skip to content

Commit c148ede

Browse files
committed
Simplify slightly
1 parent 3a66582 commit c148ede

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Testing/Test+Macro.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,10 @@ extension Test {
579579
nil != strstr(typeName, testContainerTypeNameMagic)
580580
}
581581
}, /*typeEnumerator:*/ { type, context in
582-
if let context, let type = unsafeBitCast(type, to: Any.Type.self) as? any __TestContainer.Type {
583-
let taskGroup = context.assumingMemoryBound(to: ThrowingTaskGroup<[Self], any Error>.self)
582+
if let type = unsafeBitCast(type, to: Any.Type.self) as? any __TestContainer.Type {
583+
let taskGroup = context!.assumingMemoryBound(to: ThrowingTaskGroup<[Self], any Error>.self)
584584
taskGroup.pointee.addTask {
585-
return await type.__tests
585+
await type.__tests
586586
}
587587
}
588588
}, &taskGroup)

0 commit comments

Comments
 (0)