Skip to content

Commit

Permalink
slightly more consistent return values
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 30, 2013
1 parent 601be47 commit c52cf51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.43 2013-10-01

4.42 2013-09-30
- Added EXPERIMENTAL form validation support.
- Added EXPERIMENTAL modules Mojolicious::Validator and
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -43,7 +43,7 @@ has types => sub { Mojolicious::Types->new };
has validator => sub { Mojolicious::Validator->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.42';
our $VERSION = '4.43';

sub AUTOLOAD {
my $self = shift;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/PODRenderer.pm
Expand Up @@ -27,7 +27,7 @@ sub register {
$app->helper(pod_to_html => sub { shift; b(_pod_to_html(@_)) });

# Perldoc browser
return if $conf->{no_perldoc};
return undef if $conf->{no_perldoc};
my $defaults = {module => 'Mojolicious/Guides', format => 'html'};
return $app->routes->any(
'/perldoc/:module' => $defaults => [module => qr/[^.]+/] => \&_perldoc);
Expand Down

0 comments on commit c52cf51

Please sign in to comment.