We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b5ec50 commit 7c26c15Copy full SHA for 7c26c15
Sources/Testing/Events/Recorder/Event.HumanReadableOutputRecorder.swift
@@ -119,8 +119,8 @@ extension Event.HumanReadableOutputRecorder {
119
guard let graph else {
120
return (0, 0, 0, 0, "")
121
}
122
- let errorIssueCount = graph.compactMap(\.value?.issueCount[.error]).reduce(into: 0, +=)
123
- let warningIssueCount = graph.compactMap(\.value?.issueCount[.warning]).reduce(into: 0, +=)
+ let errorIssueCount = graph.compactMap { $0.value?.issueCount[.error] }.reduce(into: 0, +=)
+ let warningIssueCount = graph.compactMap { $0.value?.issueCount[.warning] }.reduce(into: 0, +=)
124
let knownIssueCount = graph.compactMap(\.value?.knownIssueCount).reduce(into: 0, +=)
125
let totalIssueCount = errorIssueCount + warningIssueCount + knownIssueCount
126
0 commit comments