From 8be5a8b7a38e347f338827f88bda98a0d34b05f0 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Fri, 8 Dec 2017 14:51:25 -0500 Subject: [PATCH] unnecessary null check check --- packages/react-dom/src/client/ReactDOMFiberComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dom/src/client/ReactDOMFiberComponent.js b/packages/react-dom/src/client/ReactDOMFiberComponent.js index 67efb8cdf6eea..8ca86a240abde 100644 --- a/packages/react-dom/src/client/ReactDOMFiberComponent.js +++ b/packages/react-dom/src/client/ReactDOMFiberComponent.js @@ -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 ||