Skip to content

Commit

Permalink
golf -2B
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Jan 23, 2021
1 parent 934f36d commit 5583b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ function diffElementNodes(
// which is loosely equal to Text VNodes' `.type=null`. Elements use string equality.
if (
child != null &&
((newVNode.type === null
((nodeType === null
? child.nodeType === 3
: child.localName === newVNode.type) ||
: child.localName === nodeType) ||
dom == child)
) {
dom = child;
Expand Down

0 comments on commit 5583b46

Please sign in to comment.