Skip to content

Commit 2e34a35

Browse files
committed
Remove redundant #requires
1 parent 5a12827 commit 2e34a35

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Tests/AppTests/AnalyzerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ extension AllTests.AnalyzerTests {
763763

764764
do { // validate
765765
#expect(try await Version.query(on: app.db).count() == 2)
766-
let versions = try #require(await Version.query(on: app.db).sort(\.$commit).all())
766+
let versions = try await Version.query(on: app.db).sort(\.$commit).all()
767767
#expect(versions[0].docArchives == [.init(name: "foo", title: "Foo")])
768768
#expect(versions[1].docArchives == nil)
769769
}

Tests/AppTests/PackageCollectionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ extension AllTests.PackageCollectionTests {
869869
// so we don't fail for that reason
870870
let revokedUrl = fixtureUrl(for: "revoked.cer")
871871
#expect(Foundation.FileManager.default.fileExists(atPath: revokedUrl.path))
872-
let revokedKey = try #require(try fixtureData(for: "revoked.pem"))
872+
let revokedKey = try fixtureData(for: "revoked.pem")
873873

874874
await withDependencies {
875875
$0.environment.collectionSigningCertificateChain = {

Tests/AppTests/ReferenceTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ extension AllTests.ReferenceTests {
7171
#expect(Reference.branch("foo-bar").pathEncoded == "foo-bar")
7272
#expect(Reference.tag(.init("1.2.3")!).pathEncoded == "1.2.3")
7373
do {
74-
let s = try #require(SemanticVersion(1, 2, 3, "foo/bar"))
74+
let s = SemanticVersion(1, 2, 3, "foo/bar")
7575
#expect(Reference.tag(s).pathEncoded == "1.2.3-foo-bar")
7676
}
7777
do {
78-
let s = try #require(SemanticVersion(1, 2, 3, "foo/bar", "bar/baz"))
78+
let s = SemanticVersion(1, 2, 3, "foo/bar", "bar/baz")
7979
#expect(Reference.tag(s).pathEncoded == "1.2.3-foo-bar+bar-baz")
8080
}
8181
}

Tests/AppTests/WebpageSnapshotTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ extension AllTests.WebpageSnapshotTests {
335335
}
336336

337337
@Test func MarkdownPage_document_styling() throws {
338-
let data = try #require(try fixtureData(for: "markdown-test.md"))
338+
let data = try fixtureData(for: "markdown-test.md")
339339
let markdown = try #require(String(data: data, encoding: .utf8))
340340
let html = MarkdownParser().parse(markdown).html
341341
let page = { MarkdownPage(path: "", html: html).document() }

0 commit comments

Comments
 (0)