Skip to content

Commit

Permalink
no need to return in oneliner example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 29, 2014
1 parent b4e2362 commit d50abbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -139,7 +139,7 @@ header, C<format> stash value or C<format> GET/POST parameter with
L<Mojolicious::Types/"accepts">, defaults to returning the first extension if
no preference could be detected.
return $self->render(json => {hello => 'world'}) if $self->accepts('json');
$self->render(json => {hello => 'world'}) if $self->accepts('json');
=head2 app
Expand Down

0 comments on commit d50abbb

Please sign in to comment.