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