Permalink
Browse files

[dist] JSHint stuff for commands.js

  • Loading branch information...
1 parent d2d97b3 commit f3d17d4d8b79de045363bd95e2542961bacd5010 @alejandro alejandro committed Jun 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/commands.js
View
@@ -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);

0 comments on commit f3d17d4

Please sign in to comment.