Formatting cleanup

This commit is contained in:
Maurice Parker 2020-10-21 17:57:27 -05:00
parent 4ad3da30e1
commit 642eb1ae33
1 changed files with 0 additions and 8 deletions

View File

@ -389,8 +389,6 @@ final class ReaderAPICaller: NSObject {
switch result { switch result {
case .success(let token): case .success(let token):
var request = URLRequest(url: baseURL.appendingPathComponent(ReaderAPIEndpoints.subscriptionEdit.rawValue), credentials: self.credentials) var request = URLRequest(url: baseURL.appendingPathComponent(ReaderAPIEndpoints.subscriptionEdit.rawValue), credentials: self.credentials)
request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST" request.httpMethod = "POST"
@ -457,8 +455,6 @@ final class ReaderAPICaller: NSObject {
switch result { switch result {
case .success(let token): case .success(let token):
var request = URLRequest(url: baseURL.appendingPathComponent(ReaderAPIEndpoints.subscriptionEdit.rawValue), credentials: self.credentials) var request = URLRequest(url: baseURL.appendingPathComponent(ReaderAPIEndpoints.subscriptionEdit.rawValue), credentials: self.credentials)
request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST" request.httpMethod = "POST"
@ -476,7 +472,6 @@ final class ReaderAPICaller: NSObject {
} }
}) })
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
} }
@ -494,8 +489,6 @@ final class ReaderAPICaller: NSObject {
switch result { switch result {
case .success(let token): case .success(let token):
var request = URLRequest(url: baseURL.appendingPathComponent(ReaderAPIEndpoints.subscriptionEdit.rawValue), credentials: self.credentials) var request = URLRequest(url: baseURL.appendingPathComponent(ReaderAPIEndpoints.subscriptionEdit.rawValue), credentials: self.credentials)
request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST" request.httpMethod = "POST"
@ -513,7 +506,6 @@ final class ReaderAPICaller: NSObject {
} }
}) })
case .failure(let error): case .failure(let error):
completion(.failure(error)) completion(.failure(error))
} }