From 09e68f92cd6264af888ff3a8c520e125a4db0432 Mon Sep 17 00:00:00 2001 From: Yang Cao Date: Thu, 3 Dec 2020 10:57:04 -0500 Subject: [PATCH] More styling fix --- src/internal/download-http-client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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