From e7f2eea63ba62fa27257d1e1f0a4c0a065d5ba12 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Mon, 25 Mar 2019 16:19:27 +0100 Subject: [PATCH] chore(Index): remove else --- .../src/components/Index.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/react-instantsearch-core/src/components/Index.tsx b/packages/react-instantsearch-core/src/components/Index.tsx index 422bd472ec..fd0543c2ed 100644 --- a/packages/react-instantsearch-core/src/components/Index.tsx +++ b/packages/react-instantsearch-core/src/components/Index.tsx @@ -119,15 +119,14 @@ class Index extends Component { const { Root, props } = this.props.root; if (childrenCount === 0) { return null; - } else { - return ( - - - {this.props.children} - - - ); } + return ( + + + {this.props.children} + + + ); } }