Skip to content

Commit 31b7e62

Browse files
author
Maxime
committed
removed redundant boolean eval
1 parent 0f5ef2f commit 31b7e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/download.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ export const download = new Elysia()
6060
const outputPath = `${outputDir}${userId}/${jobId}`;
6161
const outputTar = path.join(outputPath, `converted_files_${jobId}.tar`)
6262

63-
await tar.create({file: outputTar, cwd: outputPath, filter: (path) => { return path.match(".*\\.tar") ? false : true; }}, ["."]);
63+
await tar.create({file: outputTar, cwd: outputPath, filter: (path) => { return !path.match(".*\\.tar"); }}, ["."]);
6464
return Bun.file(outputTar);
6565
});

0 commit comments

Comments
 (0)