Skip to content

Commit 48c38a4

Browse files
double mkdir call
1 parent eab499e commit 48c38a4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/install.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ export async function download (
3131
geckodriverVersion: string = process.env.GECKODRIVER_VERSION,
3232
cacheDir: string = process.env.GECKODRIVER_CACHE_DIR || os.tmpdir()
3333
) {
34-
if (!await hasAccess(cacheDir)) {
35-
await fsp.mkdir(cacheDir, { recursive: true })
36-
}
37-
3834
const binaryFilePath = path.resolve(cacheDir, BINARY_FILE)
3935
if (await hasAccess(binaryFilePath)) {
4036
return binaryFilePath

0 commit comments

Comments
 (0)