From 31b7e629831d109c639a6b195f24fff3ca46cfc3 Mon Sep 17 00:00:00 2001 From: Maxime Date: Wed, 25 Jun 2025 14:52:38 +0200 Subject: [PATCH] removed redundant boolean eval --- src/pages/download.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/download.tsx b/src/pages/download.tsx index 337fde0..3333396 100644 --- a/src/pages/download.tsx +++ b/src/pages/download.tsx @@ -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); });