Skip to content

Commit

Permalink
chore: remove extraneous return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Dec 19, 2020
1 parent 8ee5ea6 commit 9aed2a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ program.on('command:*', ([cmd]) => {
console.error(` Unknown command ${chalk.yellow(cmd)}.`);
console.log();
suggestCommands(cmd);
process.exit(1);
process.exitCode = 1;
});

program.parse(process.argv);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/basic/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const addDeps = async (deps, { dev }) => {
(templateDir === 'client' && template !== 'Nuxt.js'))
) {
console.log(chalk.yellow(' Please specify the dependencies to install'));
return process.exit(1);
process.exit(1);
}

const installFlag = dev ? '--save-dev' : '--save';
Expand Down Expand Up @@ -109,7 +109,7 @@ const addDeps = async (deps, { dev }) => {

if (!nuxtDeps.length) {
console.log(chalk.yellow(' Please specify the dependencies to install'));
return process.exit(1);
process.exit(1);
}

const { installCandidate } = await inquirer.prompt([
Expand Down

0 comments on commit 9aed2a6

Please sign in to comment.