Skip to content

Commit

Permalink
removing cast to any
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaslanjaka committed Oct 23, 2024
1 parent 5d1d64d commit 2e8a3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/filter/template_locals/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e8a3d3

Please sign in to comment.