Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
refactor: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 18, 2021
1 parent 51c619e commit 54f5234
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const {
isString
} = require('./util')

let ytdlBinary = null
let ytdlBinary = path.resolve(__dirname, '..', 'bin', 'youtube-dl')

const execa = universalify.fromPromise(require('execa'))

Expand Down Expand Up @@ -215,8 +215,6 @@ ytdl.setYtdlBinary = function setYtdlBinary (path) {
*/
ytdl.getYtdlBinary = function getYtdlBinary () {
return ytdlBinary
? ytdlBinary
: path.resolve(__dirname, '..', 'bin', 'youtube-dl')
}

/**
Expand Down

0 comments on commit 54f5234

Please sign in to comment.