Skip to content

Commit

Permalink
Use map with key path instead of tuple IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
mluisbrown committed Aug 12, 2019
1 parent 49b2019 commit 9765f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Tangerine/Tangerine.swift
Expand Up @@ -8,7 +8,7 @@ public protocol Fetcher {

extension URLSession: Fetcher {
public func dataTaskPublisher(for url: URL) -> AnyPublisher<Data, URLError> {
self.dataTaskPublisher(for: url).map { $0.0 }.eraseToAnyPublisher()
self.dataTaskPublisher(for: url).map(\.data).eraseToAnyPublisher()
}
}

Expand Down

0 comments on commit 9765f7a

Please sign in to comment.