Skip to content

Commit

Permalink
double mkdir call
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jul 25, 2023
1 parent eab499e commit 48c38a4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ export async function download (
geckodriverVersion: string = process.env.GECKODRIVER_VERSION,
cacheDir: string = process.env.GECKODRIVER_CACHE_DIR || os.tmpdir()
) {
if (!await hasAccess(cacheDir)) {
await fsp.mkdir(cacheDir, { recursive: true })
}

const binaryFilePath = path.resolve(cacheDir, BINARY_FILE)
if (await hasAccess(binaryFilePath)) {
return binaryFilePath
Expand Down

0 comments on commit 48c38a4

Please sign in to comment.