mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 21:10:14 +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) {
|
switch (worker) {
|
||||||
case "remux":
|
case "remux":
|
||||||
case "encode":
|
case "encode": {
|
||||||
if (workerArgs.files) {
|
if (workerArgs.files) {
|
||||||
files = 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");
|
itemError(parentId, workerId, "queue.ffmpeg.no_args");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case "fetch":
|
case "fetch":
|
||||||
await runFetchWorker(workerId, parentId, workerArgs.url);
|
await runFetchWorker(workerId, parentId, workerArgs.url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user