Skip to content

Commit

Permalink
Removed duplicate typeof check (#12541)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored and aweary committed Apr 4, 2018
1 parent e932e32 commit d328e36
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 d328e36

Please sign in to comment.