Skip to content

Commit 7c26c15

Browse files
committed
1 parent 9b5ec50 commit 7c26c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/Events/Recorder/Event.HumanReadableOutputRecorder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ extension Event.HumanReadableOutputRecorder {
119119
guard let graph else {
120120
return (0, 0, 0, 0, "")
121121
}
122-
let errorIssueCount = graph.compactMap(\.value?.issueCount[.error]).reduce(into: 0, +=)
123-
let warningIssueCount = graph.compactMap(\.value?.issueCount[.warning]).reduce(into: 0, +=)
122+
let errorIssueCount = graph.compactMap { $0.value?.issueCount[.error] }.reduce(into: 0, +=)
123+
let warningIssueCount = graph.compactMap { $0.value?.issueCount[.warning] }.reduce(into: 0, +=)
124124
let knownIssueCount = graph.compactMap(\.value?.knownIssueCount).reduce(into: 0, +=)
125125
let totalIssueCount = errorIssueCount + warningIssueCount + knownIssueCount
126126

0 commit comments

Comments
 (0)