From 965493d461d1f3ef785ba0c4f00db95e9faa7e9e Mon Sep 17 00:00:00 2001 From: E L V I S <3lvis@users.noreply.github.com> Date: Wed, 8 Jul 2020 13:54:31 -0500 Subject: [PATCH] Remove crashing in purging (#261) --- Sources/Networking+Private.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/Networking+Private.swift b/Sources/Networking+Private.swift index aaf4b20..065e46c 100644 --- a/Sources/Networking+Private.swift +++ b/Sources/Networking+Private.swift @@ -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 } @@ -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 }