removed redundant boolean eval

This commit is contained in:
Maxime
2025-06-25 14:52:38 +02:00
parent 0f5ef2f49c
commit 31b7e62983

View File

@@ -60,6 +60,6 @@ export const download = new Elysia()
const outputPath = `${outputDir}${userId}/${jobId}`;
const outputTar = path.join(outputPath, `converted_files_${jobId}.tar`)
await tar.create({file: outputTar, cwd: outputPath, filter: (path) => { return path.match(".*\\.tar") ? false : true; }}, ["."]);
await tar.create({file: outputTar, cwd: outputPath, filter: (path) => { return !path.match(".*\\.tar"); }}, ["."]);
return Bun.file(outputTar);
});