From 714fd79f58f5861533ebf5bca552b068e1778398 Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Tue, 4 Mar 2025 20:01:57 -0700 Subject: [PATCH] FIX: Minor docs changes --- backend/src/download.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/backend/src/download.ts b/backend/src/download.ts index 9b02abf..7943592 100644 --- a/backend/src/download.ts +++ b/backend/src/download.ts @@ -6,7 +6,6 @@ import archiver from "archiver"; * Append a file from the path to the archiver. Errors will be bubbled out * @param filePath Target path * @param archive The archiver - * @constructor */ export function appendFileToArchive(filePath: string, archive: archiver.Archiver): void { try { @@ -18,10 +17,10 @@ export function appendFileToArchive(filePath: string, archive: archiver.Archiver } /** - * Recursively append directories to - * @param filePath - * @param archiveRelPath - * @param archive + * Recursively append directories to the archiver + * @param filePath Target path + * @param archiveRelPath Relative path to the current archive + * @param archive The archiver */ export function appendDirectoryToArchive(filePath: string, archiveRelPath: string = "", archive: archiver.Archiver): void { try { @@ -49,8 +48,6 @@ export function appendDirectoryToArchive(filePath: string, archiveRelPath: strin appendDirectoryToArchive(fullPath, relPath, archive); } }); - - } catch (error) { throw new Error(`Error appending directory to archive: ${error}`); }