mirror of https://github.com/VERT-sh/VERT.git
fix: redundant converter find call
This commit is contained in:
parent
4273cc249a
commit
45ca5bae09
|
|
@ -60,11 +60,6 @@
|
||||||
for (let i = 0; i < files.files.length; i++) {
|
for (let i = 0; i < files.files.length; i++) {
|
||||||
const file = files.files[i];
|
const file = files.files[i];
|
||||||
const to = files.conversionTypes[i];
|
const to = files.conversionTypes[i];
|
||||||
const converter = converters.find((c) => c.name === converterName);
|
|
||||||
if (!converter) {
|
|
||||||
console.error("Converter not found");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
promises.push(
|
promises.push(
|
||||||
(async () => {
|
(async () => {
|
||||||
const converted = await converter.convert(
|
const converted = await converter.convert(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue