From d328e362e86a6af4a0664e004b8f97f18ce972c8 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 4 Apr 2018 13:30:48 -0700 Subject: [PATCH] Removed duplicate typeof check (#12541) --- packages/react-reconciler/src/ReactFiberClassComponent.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-reconciler/src/ReactFiberClassComponent.js b/packages/react-reconciler/src/ReactFiberClassComponent.js index 679c791bd5da..3f811c11088a 100644 --- a/packages/react-reconciler/src/ReactFiberClassComponent.js +++ b/packages/react-reconciler/src/ReactFiberClassComponent.js @@ -370,7 +370,6 @@ export default function( if ( typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && - typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) ) { didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type);