Skip to content

Commit 01935a8

Browse files
committed
Fix a couple warnings about unnecessary try's
1 parent 5e9dcce commit 01935a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftDiagnosticsTest/DiagnosticsFormatterTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ final class DiagnosticsFormatterTests: XCTestCase {
7878
∣ ╰─ expected value and ')' to end function call
7979
8080
"""
81-
AssertStringsEqualWithDiff(expectedOutput, try annotate(source: source))
81+
AssertStringsEqualWithDiff(expectedOutput, annotate(source: source))
8282
}
8383

8484
func testTwoDiagnosticsAtSameLocation() throws {
@@ -91,6 +91,6 @@ final class DiagnosticsFormatterTests: XCTestCase {
9191
9292
"""
9393

94-
AssertStringsEqualWithDiff(expectedOutput, try annotate(source: source))
94+
AssertStringsEqualWithDiff(expectedOutput, annotate(source: source))
9595
}
9696
}

0 commit comments

Comments
 (0)