mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-23 07:39:59 +01:00
Fix source code warnings.
This commit is contained in:
parent
7268dcdd77
commit
fc37472757
@ -172,8 +172,6 @@ private extension CloudKitArticlesZone {
|
||||
record![CloudKitArticleStatus.Fields.read] = status.flag ? "1" : "0"
|
||||
case .starred:
|
||||
record![CloudKitArticleStatus.Fields.starred] = status.flag ? "1" : "0"
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ final class NewsBlurAPICaller: NSObject {
|
||||
func validateCredentials(completion: @escaping (Result<Credentials?, Error>) -> Void) {
|
||||
requestData(endpoint: "api/login", resultType: NewsBlurLoginResponse.self) { result in
|
||||
switch result {
|
||||
case .success(let response, let payload):
|
||||
case .success((let response, let payload)):
|
||||
guard let url = response.url, let headerFields = response.allHeaderFields as? [String: String], payload?.code != -1 else {
|
||||
let error = payload?.errors?.username ?? payload?.errors?.others
|
||||
if let message = error?.first {
|
||||
@ -227,7 +227,7 @@ final class NewsBlurAPICaller: NSObject {
|
||||
resultType: NewsBlurAddURLResponse.self
|
||||
) { result in
|
||||
switch result {
|
||||
case .success(_, let payload):
|
||||
case .success((_, let payload)):
|
||||
completion(.success(payload?.feed))
|
||||
case .failure(let error):
|
||||
completion(.failure(error))
|
||||
|
Loading…
Reference in New Issue
Block a user