web/run-worker: add brackets around the case block with a const

This commit is contained in:
wukko 2025-05-24 14:40:41 +06:00
parent 2f6196f6e3
commit bb8acc8b98
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -17,7 +17,7 @@ export const startWorker = async ({ worker, workerId, dependsOn, parentId, worke
switch (worker) {
case "remux":
case "encode":
case "encode": {
if (workerArgs.files) {
files = workerArgs.files;
}
@ -48,6 +48,7 @@ export const startWorker = async ({ worker, workerId, dependsOn, parentId, worke
itemError(parentId, workerId, "queue.ffmpeg.no_args");
}
break;
}
case "fetch":
await runFetchWorker(workerId, parentId, workerArgs.url);