simplify case pattern

This commit is contained in:
Lukas Stabe 2023-01-23 20:31:25 +01:00
parent 0590a9e768
commit e15de26f0f
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ struct ReconcilePass: FiberReconcilerPass {
if let p = fiber.elementParent { caches.elementIndices[ObjectIdentifier(p)]? -= 1 }
return .remove(element: alt, parent: parent)
case let (element?, content, _) where fiber.alternate?.element == nil:
case let (element?, content, nil):
guard let parent = fiber.elementParent?.element,
let index = fiber.elementIndex
else { break }