Skip to content

Commit da871e3

Browse files
Merge pull request #3687 from SwiftPackageIndex/fix-warning
Fix warning
2 parents b48a0bc + 9493586 commit da871e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tests/AppTests/BlogActionsModelTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ import Testing
5050
#expect(summaries.map(\.slug) == ["post-2", "post-1"])
5151
#expect(summaries.map(\.published) == [false, true])
5252

53-
let firstSummary = try #require(summaries).first
54-
5553
// Note that we are testing that the first item in this list is the *last* item in the source YAML
5654
// as the init should reverse the order of posts so that they display in reverse chronological order
57-
#expect(firstSummary == BlogActions.Model.PostSummary(
55+
#expect(summaries.first == BlogActions.Model.PostSummary(
5856
slug: "post-2",
5957
title: "Blog post title two",
6058
summary: "Summary of blog post two",

0 commit comments

Comments
 (0)