Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[dist] JSHint stuff for commands.js

  • Loading branch information...
commit f3d17d4d8b79de045363bd95e2542961bacd5010 1 parent d2d97b3
@alejandro alejandro authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/commands.js
View
6 lib/commands.js
@@ -154,10 +154,10 @@ function run (cmds, command) {
log.error('command not found: ' + args);
} else if (!log.inTest) {
if (command == 'help' && args){
- return cmds.help.usage(args)
+ return cmds.help.usage(args);
} else {
log.info(command, 'usage:');
- cmds[command] && cmds[command].usage && cmds[command].usage();
+ return cmds[command] && cmds[command].usage && cmds[command].usage();
}
} else {
log.info('Dieing cleanly');
@@ -174,7 +174,7 @@ function showHelp (args) {
var cmds = commands;
var target = cmds[args[0]];
if (args && target && (target.usage || target.run)) {
- (target.usage && target.usage()) || (target.run && target.run());
+ return (target.usage && target.usage()) || (target.run && target.run());
} else {
log.info('');
log.info(' \t\t\tNodester'.bold.yellow);
Please sign in to comment.
Something went wrong with that request. Please try again.