Skip to content

Commit

Permalink
fix: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackiewmacharia committed Aug 17, 2022
1 parent 9d07b35 commit cb78d12
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,12 @@ const downloadVersion = async (versionRange: string) => {
}

const downloadVersionWithRetry = async (versionRange: string, logger: Logger) =>
await pRetry(
async () => await downloadVersion(versionRange),
{
retries: 3,
onFailedAttempt: (error) => {
logger.system('Deno CLI download retry attempt error', error)
},
await pRetry(async () => await downloadVersion(versionRange), {
retries: 3,
onFailedAttempt: (error) => {
logger.system('Deno CLI download retry attempt error', error)
},
)
})

const extractBinaryFromZip = async (zipPath: string, binaryPath: string, binaryName: string) => {
const { async: StreamZipAsync } = StreamZip
Expand Down

0 comments on commit cb78d12

Please sign in to comment.