Fix styling

This commit is contained in:
Yang Cao
2020-12-03 10:33:10 -05:00
parent 6b83f0554a
commit b55731c11b
2 changed files with 5 additions and 3 deletions

View File

@@ -219,7 +219,9 @@ export class DownloadHttpClient {
return parseInt(expected) === received
}
const resetDestinationStream = async (downloadPath: string) => {
const resetDestinationStream = async (
downloadPath: string
): Promise<void> => {
await rmFile(downloadPath)
destinationStream = fs.createWriteStream(downloadPath)
}