Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
chore(Index): remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Mar 26, 2019
1 parent fbb8516 commit e7f2eea
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/react-instantsearch-core/src/components/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,14 @@ class Index extends Component<Props, State> {
const { Root, props } = this.props.root;
if (childrenCount === 0) {
return null;
} else {
return (
<Root {...props}>
<IndexProvider value={this.state.indexContext}>
{this.props.children}
</IndexProvider>
</Root>
);
}
return (
<Root {...props}>
<IndexProvider value={this.state.indexContext}>
{this.props.children}
</IndexProvider>
</Root>
);
}
}

Expand Down

0 comments on commit e7f2eea

Please sign in to comment.