Skip to content

Commit

Permalink
Merge pull request #3559 from SwiftPackageIndex/remove-ifdefs
Browse files Browse the repository at this point in the history
Remove #if compiler(<6) clauses
  • Loading branch information
finestructure authored Dec 20, 2024
2 parents 2d216b4 + 77b4e4d commit cce82f8
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Tests/AppTests/PackageCollectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,7 @@ class PackageCollectionTests: AppTestCase {
keywords: ["key", "word"],
overview: "overview")

#if compiler(<6)
await MainActor.run { // validate
assertSnapshot(of: res, as: .json(encoder))
}
#else
assertSnapshot(of: res, as: .json(encoder))
#endif
}
}

Expand Down Expand Up @@ -521,13 +515,7 @@ class PackageCollectionTests: AppTestCase {
authorName: "Foo",
keywords: ["key", "word"])

#if compiler(<6)
await MainActor.run { // validate
assertSnapshot(of: res, as: .json(encoder))
}
#else
assertSnapshot(of: res, as: .json(encoder))
#endif
}
}

Expand Down Expand Up @@ -844,13 +832,7 @@ class PackageCollectionTests: AppTestCase {

// validate signed collection content
XCTAssertFalse(signedCollection.signature.signature.isEmpty)
#if compiler(<6)
await MainActor.run {
assertSnapshot(of: signedCollection, as: .json(encoder))
}
#else
assertSnapshot(of: signedCollection, as: .json(encoder))
#endif

// validate signature
let validated = try await SignedCollection.validate(signedCollection: signedCollection)
Expand Down

0 comments on commit cce82f8

Please sign in to comment.