Skip to content

Commit

Permalink
refactor: remove unnecessary line
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 12, 2024
1 parent 0b4050f commit cb4c24f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const { pipeline } = require('node:stream/promises')
const { createWriteStream } = require('node:fs')
const { Readable } = require('node:stream')

const mkdirp = filepath => mkdir(filepath, { recursive: true })

const httpGet = async url =>
fetch(url, {
headers: {
Expand Down Expand Up @@ -43,7 +41,7 @@ const installBinary = async () => {
debug('downloading', { url: YOUTUBE_DL_HOST })
const [binary] = await Promise.all([
getBinary(YOUTUBE_DL_HOST),
mkdirp(YOUTUBE_DL_DIR)
mkdir(YOUTUBE_DL_DIR, { recursive: true })
])
await pipeline(binary, createWriteStream(YOUTUBE_DL_PATH))
debug('writing', { path: YOUTUBE_DL_PATH })
Expand Down

0 comments on commit cb4c24f

Please sign in to comment.