Skip to content

Commit 02da188

Browse files
committed
Tests: additional stylistic compression of return
1 parent f28eed9 commit 02da188

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/SwiftDriverTests/SwiftDriverToolingInterfaceTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ final class SwiftDriverToolingInterfaceTests: XCTestCase {
142142
{ argc, argvPtr in false },
143143
{ diagKind, diagMessage in
144144
guard let nonOptionalDiagMessage = diagMessage else {
145-
XCTFail("Invalid tooling diagnostic handler message")
146-
return
145+
return XCTFail("Invalid tooling diagnostic handler message")
147146
}
148147
XCTAssertEqual(diagKind, SWIFTDRIVER_TOOLING_DIAGNOSTIC_ERROR)
149148
XCTAssertEqual(String(cString: nonOptionalDiagMessage),

0 commit comments

Comments
 (0)