Skip to content

Commit

Permalink
Make analysisState check exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
pastelsky committed Sep 17, 2019
1 parent 7be188e commit 37e28a1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,8 @@ class ExportAnalysisSection extends Component {

{this.getIncompatibleMessage() && this.renderIncompatible()}
{analysisState === State.REJECTED && this.renderFailure()}
{
(analysisState === State.EXPORTS_FULFILLED || analysisState === State.SIZES_FULFILLED) ?
this.renderSuccess() : this.renderProgress()
}
{(analysisState === State.EXPORTS_FULFILLED || analysisState === State.SIZES_FULFILLED) && this.renderSuccess()}
{ analysisState === State.IN_PROGRESS }
</div>
);
}
Expand Down

0 comments on commit 37e28a1

Please sign in to comment.