Skip to content

Commit fe58065

Browse files
committed
Simplify by beginning variable with initial value
1 parent 21e91c5 commit fe58065

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@ extension Event {
126126
return nil
127127
}
128128

129-
var summary = ""
130-
131-
// Add header with failure count
132-
summary += header()
129+
// Begin with the summary header.
130+
var summary = header()
133131

134132
// Get the failure symbol
135133
let failSymbol = Event.Symbol.fail.stringValue(options: options)

0 commit comments

Comments
 (0)