removed redundant boolean eval
This commit is contained in:
parent
0f5ef2f49c
commit
31b7e62983
1 changed files with 1 additions and 1 deletions
|
|
@ -60,6 +60,6 @@ export const download = new Elysia()
|
||||||
const outputPath = `${outputDir}${userId}/${jobId}`;
|
const outputPath = `${outputDir}${userId}/${jobId}`;
|
||||||
const outputTar = path.join(outputPath, `converted_files_${jobId}.tar`)
|
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);
|
return Bun.file(outputTar);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue