mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
remove redundant logic
This commit is contained in:
1 parent
6f1d653d54
commit
02f5cc0686
1 file changed
+1
-2
@@ -8,8 +8,7 @@
|
||||
const currentLocale =
|
||||
locales.supported.find(
|
||||
({ locale }) =>
|
||||
locale !== locales.default &&
|
||||
(pathname === `/${locale}` || pathname.startsWith(`/${locale}/`)),
|
||||
pathname === `/${locale}` || pathname.startsWith(`/${locale}/`),
|
||||
)?.locale ?? locales.default;
|
||||
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user