Skip to content

Commit

Permalink
unnecessary null check check
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 8, 2017
1 parent 6d28f98 commit 8be5a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dom/src/client/ReactDOMFiberComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export function diffProperties(
}
for (propKey in nextProps) {
const nextProp = nextProps[propKey];
const lastProp = lastProps != null ? lastProps[propKey] : undefined;
const lastProp = lastProps[propKey];
if (
!nextProps.hasOwnProperty(propKey) ||
nextProp === lastProp ||
Expand Down

0 comments on commit 8be5a8b

Please sign in to comment.