refactor: remove unused variables and replace unused id param with underscore
This commit is contained in:
+2
-3
@@ -47,7 +47,7 @@ function main() {
|
||||
});
|
||||
rip_cmd.outputSync();
|
||||
|
||||
for (const [id, lang] of Object.entries(languages_in_file)) {
|
||||
for (const [_, lang] of Object.entries(languages_in_file)) {
|
||||
const convert_cmd = new Deno.Command("vobsub2srt", {
|
||||
args: ["-l", lang, "--blacklist", "|", lang],
|
||||
});
|
||||
@@ -93,8 +93,7 @@ function main() {
|
||||
const ffmpeg_cmd = new Deno.Command("ffmpeg", {
|
||||
args: ffmpeg_cmd_raw,
|
||||
});
|
||||
const { code: ffmpeg_code, stdout: ffmpeg_stdout, stderr: ffmpeg_stderr } =
|
||||
ffmpeg_cmd.outputSync();
|
||||
const { code: ffmpeg_code, stderr: ffmpeg_stderr } = ffmpeg_cmd.outputSync();
|
||||
const ffmpeg_error = new TextDecoder().decode(ffmpeg_stderr);
|
||||
if (ffmpeg_code !== 0) {
|
||||
console.error(ffmpeg_error);
|
||||
|
||||
Reference in New Issue
Block a user