Skip to content

Commit

Permalink
fix(get): correct ffmpeg path (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrige authored and ayushmanchhabra committed Feb 22, 2024
1 parent 0a8cba3 commit 391a6e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/get/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import util from "../util.js";
async function get(options) {

/**
* If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
* If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
*
* @type {boolean}
*/
Expand Down Expand Up @@ -77,7 +77,7 @@ async function get(options) {
await fs.promises.rm(nwDirPath, { recursive: true, force: true });

/**
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
*
* @type {boolean}
*/
Expand Down Expand Up @@ -109,7 +109,7 @@ async function get(options) {
}

/**
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
*
* @type {boolean}
*/
Expand Down Expand Up @@ -143,7 +143,7 @@ async function get(options) {
*
* @type {string}
*/
let ffmpegBinaryPath = path.resolve(nwDirPath, ffmpegFileName);
let ffmpegBinaryPath = path.resolve(options.cacheDir, ffmpegFileName);

/**
* File path of where FFmpeg will be copied to.
Expand Down Expand Up @@ -194,7 +194,7 @@ async function get(options) {
}

/**
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
* If the compressed binary exists, then `true`. Otherwise, it is `false`.
*
* @type {boolean}
*/
Expand Down

0 comments on commit 391a6e1

Please sign in to comment.