File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1919// A mapping of item IDs to filenames is maintained in the download directory.
2020// This mapping efficiently checks whether an item has already been downloaded.
2121// If an item already exists, it will skip that item.
22- // To delete and re-downloaded an item, remove it's entry in the plist.
22+ // To delete and re-downloaded an item, remove its entry from the plist.
2323
2424import Foundation
2525
@@ -234,7 +234,7 @@ var downloadedItems = previousDownloadedItems
234234await withTaskGroup ( of: Void . self) { group in
235235 for portalItem in portalItems {
236236 // Checks to see if an item is already downloaded.
237- guard downloadedItems [ portalItem. identifier] == nil else {
237+ guard ! downloadedItems. keys . contains ( portalItem. identifier) else {
238238 print ( " note: Item already downloaded: \( portalItem. identifier) " )
239239 continue
240240 }
You can’t perform that action at this time.
0 commit comments