Skip to content

Commit

Permalink
small optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 23, 2012
1 parent d7e14ee commit 0eb9694
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/eval.pm
Expand Up @@ -28,7 +28,7 @@ sub run {
no warnings;
my $result = eval "package main; sub app { \$app }; $code";
say $result if $verbose && defined $result;
return $@ ? die($@) : $result;
return $@ ? die $@ : $result;
}

1;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/EPLRenderer.pm
Expand Up @@ -69,7 +69,7 @@ sub _epl {
}

# Exception or success
return ref $$output ? die($$output) : 1;
return ref $$output ? die $$output : 1;
}

1;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/JSONConfig.pm
Expand Up @@ -35,7 +35,7 @@ sub render {
# Render
my $mt = Mojo::Template->new($conf->{template} || {})->name($file);
my $json = $mt->prepend($prepend . $mt->prepend)->render($content, $app);
return ref $json ? die($json) : encode('UTF-8', $json);
return ref $json ? die $json : encode 'UTF-8', $json;
}

1;
Expand Down

0 comments on commit 0eb9694

Please sign in to comment.