File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ internal extension Store {
388
388
var currentItems = await self . items
389
389
390
390
if let strategy = existingItemsStrategy {
391
- var removedItems = [ item ]
391
+ var removedItems = currentItems
392
392
try await self . removeItemsFromStorageEngine ( & removedItems, withStrategy: strategy)
393
393
// If we remove this one it will error
394
394
self . removeItemsFromMemory ( & currentItems, withStrategy: strategy, identifier: cacheIdentifier)
@@ -413,7 +413,7 @@ internal extension Store {
413
413
414
414
if let strategy = existingItemsStrategy {
415
415
// Remove items from disk and memory based on the cache invalidation strategy
416
- var removedItems = items
416
+ var removedItems = currentItems
417
417
try await self . removeItemsFromStorageEngine ( & removedItems, withStrategy: strategy)
418
418
// This one is fine to remove... but why?
419
419
// Is it the way we construct the items in the ordered dictionary?
You can’t perform that action at this time.
0 commit comments