mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
refactor(app conditional cleanup): remove unnecessary else statement
This commit is contained in:
@@ -8,13 +8,12 @@ class CoreApp extends App {
|
||||
const { Component, pageProps, router } = this.props;
|
||||
if (router.asPath === '/login') {
|
||||
return <Component {...pageProps} />;
|
||||
} else {
|
||||
return (
|
||||
<Layout>
|
||||
<Component {...pageProps} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Layout>
|
||||
<Component {...pageProps} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user