Skip to content

Commit b3beec9

Browse files
committed
Format code
1 parent 84debc9 commit b3beec9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Sources/XcbeautifyLib/Constants.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ extension OutputType: CustomStringConvertible {
3535
public var description: String {
3636
switch self {
3737
case .undefined:
38-
return "undefined"
38+
"undefined"
3939
case .task:
40-
return "task"
40+
"task"
4141
case .test:
42-
return "test"
42+
"test"
4343
case .warning:
44-
return "warning"
44+
"warning"
4545
case .error:
46-
return "error"
46+
"error"
4747
case .result:
48-
return "result"
48+
"result"
4949
case .testCase:
50-
return "testCase"
50+
"testCase"
5151
case .nonContextualError:
52-
return "nonContextualError"
52+
"nonContextualError"
5353
}
5454
}
5555
}

Sources/XcbeautifyLib/Renderers/TerminalRenderer.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ struct TerminalRenderer: OutputRendering {
197197

198198
func format(testSummary: TestSummary) -> String {
199199
if testSummary.isSuccess() {
200-
return colored ? "Tests Passed: \(testSummary.description)".s.Bold.f.Green : "Tests Passed: \(testSummary.description)"
200+
colored ? "Tests Passed: \(testSummary.description)".s.Bold.f.Green : "Tests Passed: \(testSummary.description)"
201201
} else {
202-
return colored ? "Tests Failed: \(testSummary.description)".s.Bold.f.Red : "Tests Failed: \(testSummary.description)"
202+
colored ? "Tests Failed: \(testSummary.description)".s.Bold.f.Red : "Tests Failed: \(testSummary.description)"
203203
}
204204
}
205205
}

0 commit comments

Comments
 (0)