Skip to content

Commit f8cdf92

Browse files
made small change.
1 parent 51d1a6f commit f8cdf92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/command_not_found/myhook.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ const hook: Hook.CommandNotFound = async function (opts) {
1414
help.showHelp(['--help']);
1515
return;
1616
}
17-
const hiddenCommandIds = new Set(opts.config.commands.filter((c) => {c.hidden;}).map((c) => c.id));
17+
const hiddenCommandIds = new Set(opts.config.commands.filter((c) => c.hidden).map((c) => c.id));
1818
const commandIDs = [...opts.config.commandIDs, ...opts.config.commands.flatMap((c) => c.aliases)].filter(
1919
(c) => !hiddenCommandIds.has(c),
2020
);
21-
//here we get the command ids and hidden command ids.
2221

2322
if (commandIDs.length === 0) {return;}
23+
2424
// now we we return if the command id are not there.
2525

2626
let binHelp = `${opts.config.bin} help`;

0 commit comments

Comments
 (0)