Skip to content

Commit

Permalink
refactor: use inline approach (#4904)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored and pksunkara committed Dec 12, 2019
1 parent 26bdb51 commit 00acca5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/@vue/cli/bin/vue.js
Expand Up @@ -248,9 +248,7 @@ if (!process.argv.slice(2).length) {
}

function suggestCommands (unknownCommand) {
const availableCommands = program.commands.map(cmd => {
return cmd._name
})
const availableCommands = program.commands.map(cmd => cmd._name)

const suggestion = didYouMean(unknownCommand, availableCommands)
if (suggestion) {
Expand Down

0 comments on commit 00acca5

Please sign in to comment.