Add parentheses in the right places to make Xcode 11.4 happy with our tuples.

This commit is contained in:
Brent Simmons 2020-03-29 18:53:15 -07:00
parent 2c4ee99dc2
commit 85b24ff92d
1 changed files with 2 additions and 2 deletions

View File

@ -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 {