Add parentheses in the right places to make Xcode 11.4 happy with our tuples.
This commit is contained in:
parent
2c4ee99dc2
commit
85b24ff92d
|
@ -302,7 +302,7 @@ final class FeedlyAPICaller {
|
||||||
|
|
||||||
transport.send(request: request, resultType: [FeedlyFeed].self, dateDecoding: .millisecondsSince1970, keyDecoding: .convertFromSnakeCase) { result in
|
transport.send(request: request, resultType: [FeedlyFeed].self, dateDecoding: .millisecondsSince1970, keyDecoding: .convertFromSnakeCase) { result in
|
||||||
switch result {
|
switch result {
|
||||||
case .success(let httpResponse, _):
|
case .success((let httpResponse, _)):
|
||||||
if httpResponse.statusCode == 200 {
|
if httpResponse.statusCode == 200 {
|
||||||
completion(.success(()))
|
completion(.success(()))
|
||||||
} else {
|
} else {
|
||||||
|
@ -364,7 +364,7 @@ extension FeedlyAPICaller: FeedlyAddFeedToCollectionService {
|
||||||
|
|
||||||
transport.send(request: request, resultType: [FeedlyFeed].self, dateDecoding: .millisecondsSince1970, keyDecoding: .convertFromSnakeCase) { result in
|
transport.send(request: request, resultType: [FeedlyFeed].self, dateDecoding: .millisecondsSince1970, keyDecoding: .convertFromSnakeCase) { result in
|
||||||
switch result {
|
switch result {
|
||||||
case .success(_, let collectionFeeds):
|
case .success((_, let collectionFeeds)):
|
||||||
if let feeds = collectionFeeds {
|
if let feeds = collectionFeeds {
|
||||||
completion(.success(feeds))
|
completion(.success(feeds))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue