Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 8, 2014
1 parent 246b9d3 commit 44708bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions lib/Mojolicious/Command.pm
Expand Up @@ -52,10 +52,7 @@ sub extract_usage {
return unindent $output;
}

sub help {
print shift->usage;
exit 0;
}
sub help { print shift->usage }

sub rel_dir { catdir(getcwd(), split '/', pop) }

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Commands.pm
Expand Up @@ -80,7 +80,7 @@ sub run {
}
@rows = sort { $a->[0] cmp $b->[0] } @rows;

print $self->message, tablify(\@rows), $self->hint;
return print $self->message, tablify(\@rows), $self->hint;
}

sub start_app {
Expand Down

0 comments on commit 44708bc

Please sign in to comment.