Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
prettify

Co-Authored-By: João Moreno <mail@joaomoreno.com>
  • Loading branch information
jamesgeorge007 and joaomoreno committed Jun 4, 2019
1 parent 1b84e23 commit ca1847c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ function main(task: Promise<any>): void {
}

function suggestCommands(cmd: string): void {
const availableCommands = program.commands.map(cmd => {
return cmd._name;
});
const availableCommands = program.commands.map(c => c._name);

const suggestion: string | string[] = didYouMean(cmd, availableCommands);
if (suggestion) {
Expand Down

0 comments on commit ca1847c

Please sign in to comment.