Skip to content

Commit

Permalink
Remove impossible branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Sep 12, 2024
1 parent 022dbb1 commit 0453daa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function diffElementNodes(
if (i == 'children') {
} else if (i == 'dangerouslySetInnerHTML') {
oldHtml = value;
} else if (i !== 'key' && !(i in newProps)) {
} else if (!(i in newProps)) {
if (
(i == 'value' && 'defaultValue' in newProps) ||
(i == 'checked' && 'defaultChecked' in newProps)
Expand All @@ -479,7 +479,6 @@ function diffElementNodes(
} else if (i == 'checked') {
checked = value;
} else if (
i !== 'key' &&
(!isHydrating || typeof value == 'function') &&
oldProps[i] !== value
) {
Expand Down

0 comments on commit 0453daa

Please sign in to comment.