Skip to content

Commit e883fc9

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 8105068 commit e883fc9

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Sources/SnapshotTesting/AssertSnapshot.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,9 @@ public func verifySnapshot<Value, Format>(
311311
func recordSnapshot() throws {
312312
try snapshotting.diffing.toData(diffable).write(to: snapshotFileUrl)
313313
#if !os(Linux) && !os(Windows)
314-
if
315-
!isSwiftTesting,
314+
if !isSwiftTesting,
316315
ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
317-
{
316+
{
318317
XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
319318
let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
320319
activity.add(attachment)

Sources/SnapshotTesting/Internal/RecordIssue.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import XCTest
55
#endif
66

77
var isSwiftTesting: Bool {
8-
#if canImport(Testing)
9-
return Test.current != nil
8+
#if canImport(Testing)
9+
return Test.current != nil
1010
#else
11-
return false
11+
return false
1212
#endif
1313
}
1414

0 commit comments

Comments
 (0)