Skip to content

Commit 0e4f937

Browse files
committed
Remove unnecessary safe navigation
1 parent d50eee5 commit 0e4f937

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/morphlex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class Morph {
328328
#morphOneToOne(from: ChildNode, to: ChildNode): void {
329329
// Fast path: if nodes are exactly the same object, skip morphing
330330
if (from === to) return
331-
if (from.isEqualNode?.(to)) return
331+
if (from.isEqualNode(to)) return
332332

333333
if (from.nodeType === ELEMENT_NODE_TYPE && to.nodeType === ELEMENT_NODE_TYPE) {
334334
if ((from as Element).localName === (to as Element).localName) {

0 commit comments

Comments
 (0)