diff --git a/src/internal/download-http-client.ts b/src/internal/download-http-client.ts index 7caef99..201a5f7 100644 --- a/src/internal/download-http-client.ts +++ b/src/internal/download-http-client.ts @@ -220,10 +220,10 @@ export class DownloadHttpClient { } const resetDestinationStream = async ( - downloadPath: string + fileDownloadPath: string ): Promise => { - await rmFile(downloadPath) - destinationStream = fs.createWriteStream(downloadPath) + await rmFile(fileDownloadPath) + destinationStream = fs.createWriteStream(fileDownloadPath) } // keep trying to download a file until a retry limit has been reached