From 2b6d1e7439d3c080b9d7c5850fa583c53d8e3d19 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Wed, 30 Oct 2024 21:10:37 +0800 Subject: [PATCH] improve: rename unused parameter --- packages/core/lyrics/ttml/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/lyrics/ttml/index.ts b/packages/core/lyrics/ttml/index.ts index 618c85d..8904b17 100644 --- a/packages/core/lyrics/ttml/index.ts +++ b/packages/core/lyrics/ttml/index.ts @@ -8,7 +8,7 @@ export function parseTTML(text: string) { let lyrics: LrcJsonData; const lyricLines = ttmlParser(text).lyricLines; lyrics = { - scripts: lyricLines.map((value: LyricLine, index: number, array: LyricLine[]) => { + scripts: lyricLines.map((value: LyricLine, _index: number, _array: LyricLine[]) => { let words = value.words.length == 0 ? undefined : value.words; if (words) { words = words.map((word) => {