Skip to content

Commit

Permalink
[docs:api] remove defensive checks (#8057)
Browse files Browse the repository at this point in the history
Follow-on to #8056
  • Loading branch information
rosskevin authored Sep 5, 2017
1 parent 39b9296 commit 177a6f5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions docs/src/modules/utils/generateMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ function getDeprecatedInfo(type) {
function generatePropDescription(description, type) {
let deprecated = '';

// FIXME: unsupported flow props from 0.53.x upgrade
// https://github.com/reactjs/react-docgen/issues/207
if (type === undefined) {
return '';
}

if (type.name === 'custom') {
const deprecatedInfo = getDeprecatedInfo(type);

Expand Down Expand Up @@ -92,12 +86,6 @@ function generatePropDescription(description, type) {
}

function generatePropType(type) {
// FIXME: unsupported flow props from 0.53.x upgrade
// https://github.com/reactjs/react-docgen/issues/207
if (type === undefined) {
return '';
}

switch (type.name) {
case 'func':
return 'function';
Expand Down Expand Up @@ -158,12 +146,6 @@ function generateProps(reactAPI) {
| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|\n`;

// FIXME: unsupported flow props from 0.53.x upgrade
// https://github.com/reactjs/react-docgen/issues/207
if (reactAPI.props === undefined) {
return text;
}

text = Object.keys(reactAPI.props)
.sort()
.reduce((textProps, propRaw) => {
Expand Down

0 comments on commit 177a6f5

Please sign in to comment.