From a3a56d72018e623b23248989474ff0f2675549d3 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Sun, 15 Dec 2024 14:38:54 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit 11929aa --- src/providers/manga/asurascans.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/manga/asurascans.ts b/src/providers/manga/asurascans.ts index 2625fa82d..43ba52631 100644 --- a/src/providers/manga/asurascans.ts +++ b/src/providers/manga/asurascans.ts @@ -91,7 +91,7 @@ class AsuraScans extends MangaParser { const { data }: AxiosResponse = await this.client.get(`${this.baseUrl}/series/${chapterId}`); const chapMatch = data.replace(/\\/g, '').match(/pages.*:(\[{['"]order["'].*?}\])/); if (!chapMatch) throw new Error('Parsing error'); - let chap: { order: string; url: string }[] = JSON.parse(chapMatch[1]); + const chap: { order: string; url: string }[] = JSON.parse(chapMatch[1]); return chap.map( (page, index): IMangaChapterPage => ({ page: index + 1,