Skip to content

Commit

Permalink
Remove crashing in purging (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis authored Jul 8, 2020
1 parent f36b9a8 commit 965493d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/Networking+Private.swift
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ extension Networking {

func cacheOrPurgeJSON(object: Any?, path: String, cacheName: String?, cachingLevel: CachingLevel) throws {
guard let destinationURL = try? self.destinationURL(for: path, cacheName: cacheName) else {
assertionFailure("Couldn't get destination URL for path: \(path) and cacheName: \(String(describing: cacheName))")
return
}

Expand Down Expand Up @@ -468,7 +467,6 @@ extension Networking {
@discardableResult
func cacheOrPurgeImage(data: Data?, path: String, cacheName: String?, cachingLevel: CachingLevel) -> Image? {
guard let destinationURL = try? self.destinationURL(for: path, cacheName: cacheName) else {
assertionFailure("Couldn't get destination URL for path: \(path) and cacheName: \(String(describing: cacheName))")
return nil
}

Expand Down

0 comments on commit 965493d

Please sign in to comment.