diff --git a/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift b/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift index 845866c22..4d8bfabaa 100644 --- a/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift +++ b/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift @@ -489,7 +489,7 @@ public struct InlineSnapshotSyntaxDescriptor: Hashable { if snapshot.wasRecording || functionCallExpr.trailingClosure == nil { functionCallExpr.rightParen?.trailingTrivia = .space if let snapshotClosure { - functionCallExpr.trailingClosure = snapshotClosure // FIXME: ?? multipleTrailingClosures.removeFirst() + functionCallExpr.trailingClosure = snapshotClosure // FIXME: ?? multipleTrailingClosures.removeFirst() } else if !functionCallExpr.additionalTrailingClosures.isEmpty { let additionalTrailingClosure = functionCallExpr.additionalTrailingClosures.remove( at: functionCallExpr.additionalTrailingClosures.startIndex diff --git a/Sources/SnapshotTesting/AssertSnapshot.swift b/Sources/SnapshotTesting/AssertSnapshot.swift index cd25d88f3..9d4a24318 100644 --- a/Sources/SnapshotTesting/AssertSnapshot.swift +++ b/Sources/SnapshotTesting/AssertSnapshot.swift @@ -376,7 +376,7 @@ private class CleanCounterBetweenTestCases: NSObject, XCTestObservation { if Thread.isMainThread { doRegisterIfNeeded() } else { - DispatchQueue.main.sync { + DispatchQueue.main.sync { doRegisterIfNeeded() } }