1
0
Fork 0

More styling fix

pull/661/head
Yang Cao 2020-12-03 10:57:04 -05:00
parent b55731c11b
commit 8ed9455d68
1 changed files with 3 additions and 3 deletions

View File

@ -220,10 +220,10 @@ export class DownloadHttpClient {
}
const resetDestinationStream = async (
downloadPath: string
fileDownloadPath: string
): Promise<void> => {
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