Skip to content

Commit 11013fe

Browse files
bvaughnrhagigi
authored andcommitted
Removed duplicate typeof check (facebook#12541)
1 parent 97daadf commit 11013fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/react-reconciler/src/ReactFiberClassComponent.js

-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ export default function(
370370
if (
371371
typeof instance.getSnapshotBeforeUpdate === 'function' &&
372372
typeof instance.componentDidUpdate !== 'function' &&
373-
typeof instance.componentDidUpdate !== 'function' &&
374373
!didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type)
375374
) {
376375
didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type);

0 commit comments

Comments
 (0)