refactor(app conditional cleanup): remove unnecessary else statement

pull/8/head
Alexander Zoitos 4 years ago
parent f9b174c311
commit e61d9a767f

@ -8,7 +8,7 @@ class CoreApp extends App {
const { Component, pageProps, router } = this.props; const { Component, pageProps, router } = this.props;
if (router.asPath === '/login') { if (router.asPath === '/login') {
return <Component {...pageProps} />; return <Component {...pageProps} />;
} else { }
return ( return (
<Layout> <Layout>
<Component {...pageProps} /> <Component {...pageProps} />
@ -16,6 +16,5 @@ class CoreApp extends App {
); );
} }
} }
}
export default CoreApp; export default CoreApp;

Loading…
Cancel
Save