From 2e8a3d3f80067d8bd00089b9227f3ee140f23604 Mon Sep 17 00:00:00 2001 From: dimaslanjaka Date: Wed, 23 Oct 2024 15:42:46 +0700 Subject: [PATCH] removing cast to `any` --- lib/plugins/filter/template_locals/i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/filter/template_locals/i18n.ts b/lib/plugins/filter/template_locals/i18n.ts index 53f030ce55..7411a94b23 100644 --- a/lib/plugins/filter/template_locals/i18n.ts +++ b/lib/plugins/filter/template_locals/i18n.ts @@ -13,7 +13,7 @@ function i18nLocalsFilter(this: Hexo, locals: LocalsType): void { if (!lang) { const pattern = new Pattern(`${i18nDir}/*path`); - const data = pattern.match(locals.path) as any; + const data = pattern.match(locals.path); if (data && 'lang' in data && i18nLanguages.includes(data.lang)) { lang = data.lang;