Skip to content

Commit

Permalink
🔥 perf boost: use ternary expression over and condition (more declara…
Browse files Browse the repository at this point in the history
…tive)
  • Loading branch information
kbrsh committed Mar 28, 2017
1 parent c8eede2 commit 684d40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ const diff = function(node, vnode, parent, instance) {
while(vchild || currentChildNode) {
diff(currentChildNode, vchild, node, instance);
vchild = vnode.children[++i];
currentChildNode = currentChildNode && currentChildNode.nextSibling;
currentChildNode = currentChildNode ? currentChildNode.nextSibling : null;
}
}

Expand Down

0 comments on commit 684d40d

Please sign in to comment.