Fix an ambiguous call to download in DownloadWithCacheManager. I’m honestly not sure what function would have been called.

This commit is contained in:
Brent Simmons 2017-11-24 13:11:41 -08:00
parent e4f65000b2
commit 32973c4c85
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ private final class DownloadWithCacheManager {
return
}
download(url) { (data, response, error) in
OneShotDownloadManager.shared.download(url) { (data, response, error) in
if let _ = error, let cacheRecord = cacheRecord {
// In the case where a cache record has expired, but the download returned an error, we use the cache record anyway. By design.