Skip to content

Commit afbe9c4

Browse files
committed
Fix linting warning
1 parent 49bdd2c commit afbe9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftAssRenderer/Loader/ContentsLoader.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct ContentsLoader: ContentsLoaderType {
4747
URLSession
4848
.shared
4949
.dataTaskPublisher(for: url)
50-
.map { String(decoding: $0.data, as: UTF8.self) }
50+
.map { String(data: $0.data, encoding: .utf8) }
5151
.mapError { $0 as Error }
5252
.eraseToAnyPublisher()
5353
}

0 commit comments

Comments
 (0)