Skip to content

Commit 987c5af

Browse files
committed
refactor: removed extra await
1 parent 991fe5f commit 987c5af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subtitles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class SubtitlesProcessor {
183183

184184
if (["vtt", "srt"].includes(format)) {
185185
const text = await response.text();
186-
subtitles = await convertSubs(text, "json");
186+
subtitles = convertSubs(text, "json");
187187
} else {
188188
subtitles = await response.json();
189189
}

0 commit comments

Comments
 (0)