@samitouri / QOS-React-2 / commits / d328e362e8

Removed duplicate typeof check (#12541)

Brian Vaughn committed Apr 4, 2018 at 13:30 UTC d328e362e86a6af4a0664e004b8f97f18ce972c8
1 file changed -1
packages/react-reconciler/src/ReactFiberClassComponent.js
-1
@@ -370,7 +370,6 @@ export default function(
370 if (
371 typeof instance.getSnapshotBeforeUpdate === 'function' &&
372 typeof instance.componentDidUpdate !== 'function' &&
373 - typeof instance.componentDidUpdate !== 'function' &&
373 !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type)
374 ) {
375 didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type);