Skip to content

Commit

Permalink
remove useless handling of instanceOf and oneOf
Browse files Browse the repository at this point in the history
There is no special treatment of `Proptypes.{instanceOf, oneOf}` types
so they might as well be handled as unrecognized types.
  • Loading branch information
golopot committed May 28, 2019
1 parent 1320a55 commit 011d7b0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/util/propTypes.js
Expand Up @@ -386,13 +386,6 @@ module.exports = function propTypesInstructions(context, components, utils) {
}
return unionTypeDefinition;
}
case 'instanceOf':
return {
type: 'instance',
// Accept all children because we can't know what type they are
children: true
};
case 'oneOf':
default:
return {};
}
Expand Down

0 comments on commit 011d7b0

Please sign in to comment.