Fix lint issues.

This commit is contained in:
Brent Simmons 2025-01-22 21:49:54 -08:00
parent e52d4c28df
commit 361ecd20e3

View File

@ -180,7 +180,6 @@ final class ReaderAPICaller: NSObject {
} }
} }
func retrieveTags(completion: @escaping (Result<[ReaderAPITag]?, Error>) -> Void) { func retrieveTags(completion: @escaping (Result<[ReaderAPITag]?, Error>) -> Void) {
guard let baseURL = apiBaseURL else { guard let baseURL = apiBaseURL else {
completion(.failure(CredentialsError.incompleteCredentials)) completion(.failure(CredentialsError.incompleteCredentials))
@ -241,14 +240,11 @@ final class ReaderAPICaller: NSObject {
switch result { switch result {
case .success: case .success:
completion(.success(())) completion(.success(()))
break
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
break
} }
}) })
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
} }
@ -280,14 +276,11 @@ final class ReaderAPICaller: NSObject {
switch result { switch result {
case .success: case .success:
completion(.success(())) completion(.success(()))
break
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
break
} }
}) })
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
} }
@ -354,7 +347,6 @@ final class ReaderAPICaller: NSObject {
}) })
} }
self.requestAuthorizationToken(endpoint: baseURL) { (result) in self.requestAuthorizationToken(endpoint: baseURL) { (result) in
switch result { switch result {
case .success(let token): case .success(let token):
@ -426,10 +418,8 @@ final class ReaderAPICaller: NSObject {
switch result { switch result {
case .success: case .success:
completion(.success(())) completion(.success(()))
break
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
break
} }
}) })
@ -486,10 +476,8 @@ final class ReaderAPICaller: NSObject {
switch result { switch result {
case .success: case .success:
completion(.success(())) completion(.success(()))
break
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
break
} }
}) })
@ -546,7 +534,6 @@ final class ReaderAPICaller: NSObject {
} }
}) })
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
} }
@ -737,12 +724,10 @@ private extension ReaderAPICaller {
} }
}) })
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
} }
} }
} }
} }