mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Replace forEach for for-in.
This commit is contained in:
1 parent
53215c1f80
commit
6db1d40597
37 files changed
+185
-123
No files matched your search
@@ -123,12 +123,12 @@ public enum CreateReaderAPISubscriptionResult: Sendable {
|
||||
}
|
||||
|
||||
var authData: [String: String] = [:]
|
||||
rawData.split(separator: "\n").forEach({ (line: Substring) in
|
||||
let items = line.split(separator: "=").map{String($0)}
|
||||
for line in rawData.split(separator: "\n") {
|
||||
let items = line.split(separator: "=").map { String($0) }
|
||||
if items.count == 2 {
|
||||
authData[items[0]] = items[1]
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
guard let authString = authData["Auth"] else {
|
||||
throw CredentialsError.incompleteCredentials
|
||||
|
||||
Reference in new issue
Block a user