Skip to content

Commit

Permalink
Fix codecov issues in Downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimKovalenkoSNF committed Oct 17, 2023
1 parent c5fe712 commit ff85dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class Downloader {
await this.claimRequest()

try {
return await new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
const cb = (err: any, val: any) => {
if (err) {
reject(err)
Expand Down Expand Up @@ -687,7 +687,7 @@ class Downloader {

// Solution to handle aws js sdk v3 from https://github.com/aws/aws-sdk-js-v3/issues/1877
private async streamToBuffer(stream: Readable): Promise<Buffer> {
return await new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
const chunks: Uint8Array[] = []
stream.on('data', (chunk) => chunks.push(chunk))
stream.on('error', reject)
Expand Down

0 comments on commit ff85dde

Please sign in to comment.