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 @@ -335,7 +335,7 @@ internal extension Store {
335
335
var currentItems = self . items
336
336
337
337
if let strategy = existingItemsStrategy {
338
- var removedItems = [ item ]
338
+ var removedItems = currentItems
339
339
try await self . removeItemsFromStorageEngine ( & removedItems, withStrategy: strategy)
340
340
// If we remove this one it will error
341
341
self . removeItemsFromMemory ( & currentItems, withStrategy: strategy, identifier: cacheIdentifier)
@@ -360,7 +360,7 @@ internal extension Store {
360
360
361
361
if let strategy = existingItemsStrategy {
362
362
// Remove items from disk and memory based on the cache invalidation strategy
363
- var removedItems = items
363
+ var removedItems = currentItems
364
364
try await self . removeItemsFromStorageEngine ( & removedItems, withStrategy: strategy)
365
365
// This one is fine to remove... but why?
366
366
// Is it the way we construct the items in the ordered dictionary?
You can’t perform that action at this time.
0 commit comments