Skip to content

Commit

Permalink
Simplify cache implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
carson-katri committed Jun 18, 2022
1 parent 89c9624 commit 2f018a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/TokamakCore/Fiber/FiberReconcilerPass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ extension FiberReconciler {

@inlinable
func appendChild(parent: Fiber, child: Fiber) {
let key = ObjectIdentifier(parent)
elementChildren[key] = elementChildren[key, default: []] + [child]
elementChildren[ObjectIdentifier(parent), default: []].append(child)
}
}
}
Expand Down

0 comments on commit 2f018a2

Please sign in to comment.