Skip to content

Commit

Permalink
Fix warning for tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
TrabelsiAchraf committed Nov 25, 2021
1 parent 8dc3ab0 commit a344a54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EssentialFeed/Feed API/RemoteFeedLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class RemoteFeedLoader: FeedLoader {
client.get(from: url) { [weak self] result in
guard self != nil else { return }
switch result {
case let .success(data, response):
case let .success((data, response)):
completion(RemoteFeedLoader.map(data, from: response))
case .failure:
completion(.failure(Error.connectivity))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class URLSessionHTTPClientTests: XCTestCase {
let result = resultFor(data: data, response: response, error: error, file: file, line: line)

switch result {
case let .success(data, response):
case let .success((data, response)):
return (data, response)
default:
XCTFail("Expected success, got \(result) instead", file: file, line: line)
Expand Down

0 comments on commit a344a54

Please sign in to comment.