Skip to content

Commit

Permalink
ProcessCoverage: Fix deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
remko committed Nov 30, 2024
1 parent 54af19f commit 6b97dcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/ProcessCoverage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ for d in report.data {
out += "<pre id=\"f\(fileID)\" style=\"display: none\"><span>"
var segments = f.segments
for (index, line) in try
(String(contentsOfFile: f.filename).split(omittingEmptySubsequences: false) { $0.isNewline })
(String(contentsOfFile: f.filename, encoding: .utf8).split(omittingEmptySubsequences: false) {
$0.isNewline
})
.enumerated()
{
var l = line
Expand Down

0 comments on commit 6b97dcc

Please sign in to comment.