mirror of
https://github.com/C4illin/ConvertX.git
synced 2025-11-02 21:13:38 +00:00
removed redundant boolean eval
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user