Skip to content

Commit f8140e2

Browse files
committed
Don't use any
1 parent 56aca72 commit f8140e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const defaultLocale = 'ca' satisfies (typeof locales)[number]
1111
function isLocaleInDatabase(
1212
locale: string
1313
): locale is (typeof localesInDatabase)[number] {
14-
return localesInDatabase.includes(locale as any)
14+
return localesInDatabase.some((l) => l === locale)
1515
}
1616

1717
export function localeOrDefault<T extends string>(locale: T) {

0 commit comments

Comments
 (0)