Skip to content

Commit

Permalink
removed trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 25, 2012
1 parent 070a8a1 commit 48a6e3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
Expand Up @@ -266,7 +266,7 @@
- Fixed small newline capture bug in Mojolicious::Routes::Match.

2.62 2012-03-17
- Deprecated Mojolicious::Renderer->default_template_class in favor of
- Deprecated Mojolicious::Renderer->default_template_class in favor of
Mojolicious::Renderer->classes.
- Deprecated Mojolicious::Static->default_static_class in favor of
Mojolicious::Static->classes.
Expand Down
7 changes: 2 additions & 5 deletions lib/Mojolicious/Renderer.pm
Expand Up @@ -224,11 +224,8 @@ sub _render_template {
my ($self, $c, $output, $options) = @_;

# Find handler and render
my $handler
= $options->{handler}
|| $self->_detect_handler($options)
|| $self->default_handler;
$options->{handler} = $handler;
my $handler = $options->{handler} || $self->_detect_handler($options);
$options->{handler} = $handler ||= $self->default_handler;
if (my $renderer = $self->handlers->{$handler}) {
return 1 if $renderer->($self, $c, $output, $options);
}
Expand Down

0 comments on commit 48a6e3f

Please sign in to comment.