Skip to content

Commit

Permalink
unwrap optional functions in authoredActivityLoader.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
RDMurray committed Apr 24, 2024
1 parent 49fe3d8 commit 25e457b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class AuthoredActivityLoader {

for (wptIndex, waypoint) in content.waypoints.enumerated() {
for (clipIndex, image) in waypoint.images.enumerated() {
guard let key = manager.cacheKey(for: image.url), await manager.imageCache.containsImage(forKey: key, cacheType: .all) == .none else {
guard let key = manager.cacheKey(for: image.url), await manager.imageCache.containsImage!(forKey: key, cacheType: .all) == .none else {
GDLogInfo(.authoredContent, "Image \(image.url.lastPathComponent) already cached (waypoint: \(wptIndex), clip: \(clipIndex))")
continue
}
Expand Down Expand Up @@ -554,7 +554,7 @@ class AuthoredActivityLoader {

for image in images {
if let key = manager.cacheKey(for: image) {
manager.imageCache.removeImage(forKey: key, cacheType: .all)
manager.imageCache.removeImage!(forKey: key, cacheType: .all)
}
}
}
Expand Down

0 comments on commit 25e457b

Please sign in to comment.