Skip to content

Commit

Permalink
Removed duplicate typeof check (facebook#12541)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored and rhagigi committed Apr 19, 2018
1 parent 97daadf commit 11013fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/react-reconciler/src/ReactFiberClassComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 11013fe

Please sign in to comment.