Fix various swiftlint and swiftformat warnings

This commit is contained in:
Stefan Ceriu
2024-06-11 16:38:33 +03:00
committed by Stefan Ceriu
parent e5bcc34a24
commit 5cf3a4477e
6 changed files with 9 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ extension Dictionary {
options: [.fragmentsAllowed, .sortedKeys]) else {
return nil
}
return String(data: data, encoding: .utf8)
return String(decoding: data, as: UTF8.self)
}
/// Returns a dictionary containing the original values keyed by the results of mapping the given closure over its keys.