From 82953e64c8af2f573651a60f92988ed3cfacedab Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 4 Apr 2018 10:59:01 -0700 Subject: [PATCH] Removed duplicate typeof check --- 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 679c791bd5da2..3f811c11088a3 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);