Skip to content

Commit 4bdc9af

Browse files
flashspysahoppen
andauthored
Update Sources/SwiftDiagnostics/DiagnosticsFormatter.swift
Co-authored-by: Alex Hoppen <[email protected]>
1 parent 7a30825 commit 4bdc9af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDiagnostics/DiagnosticsFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public struct DiagnosticsFormatter {
7070

7171
// If necessary, print a line that indicates that there was lines skipped in the source code
7272
if hasLineBeenSkipped && !annotatedSource.isEmpty {
73-
let lineMissingInfoLine = Array(repeating: " ", count: maxNumberOfDigits).joined(separator: "") + ""
73+
let lineMissingInfoLine = String(repeating: " ", count: maxNumberOfDigits) + ""
7474
annotatedSource.append("\(lineMissingInfoLine)\n")
7575
}
7676
hasLineBeenSkipped = false

0 commit comments

Comments
 (0)