From 625ccca8570773dd84a34ee51a81aa2bc5a4f97a Mon Sep 17 00:00:00 2001 From: stephencelis Date: Fri, 5 Apr 2024 20:43:28 +0000 Subject: [PATCH] Run swift-format --- Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift | 2 +- Sources/SnapshotTesting/AssertSnapshot.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() } }