From 8ed9455d68df6963c7c9f088c4d26ceced86aa50 Mon Sep 17 00:00:00 2001 From: Yang Cao Date: Thu, 3 Dec 2020 10:57:04 -0500 Subject: [PATCH] More styling fix --- packages/artifact/src/internal/download-http-client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/artifact/src/internal/download-http-client.ts b/packages/artifact/src/internal/download-http-client.ts index 7caef993..201a5f70 100644 --- a/packages/artifact/src/internal/download-http-client.ts +++ b/packages/artifact/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