Skip to content

Commit

Permalink
Fix the warnings of the static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Sep 27, 2024
1 parent d7d2d9f commit 4e664b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/which.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ try {
if (!positionals.length) throw Error("You must provide the name of a command to find.");

// Find the instances of the provided executable.
silent = values.silent ?? false;
({silent} = values);
const finder = which(positionals[0]);
const paths = await (values.all ? finder.all() : finder.first());
if (!silent) console.log(Array.isArray(paths) ? paths.join(EOL) : paths);
Expand Down

0 comments on commit 4e664b9

Please sign in to comment.