fix: redundant converter find call

This commit is contained in:
not-nullptr 2024-11-12 12:26:24 +00:00
parent 4273cc249a
commit 45ca5bae09
1 changed files with 0 additions and 5 deletions

View File

@ -60,11 +60,6 @@
for (let i = 0; i < files.files.length; i++) {
const file = files.files[i];
const to = files.conversionTypes[i];
const converter = converters.find((c) => c.name === converterName);
if (!converter) {
console.error("Converter not found");
continue;
}
promises.push(
(async () => {
const converted = await converter.convert(