mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 12:30:12 +02:00
web/run-worker: add brackets around the case block with a const
This commit is contained in:
parent
2f6196f6e3
commit
bb8acc8b98
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user