Skip to content

Commit

Permalink
another small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 25, 2013
1 parent e583b8a commit 565c0e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Mojolicious/Command/get.pm
Expand Up @@ -109,10 +109,7 @@ sub _json {
say $json->encode($data);
}

sub _say {
return unless length(my $value = shift);
say encode('UTF-8', $value);
}
sub _say { say encode('UTF-8', $_[0]) if length $_[0] }

sub _select {
my ($buffer, $selector, $charset, @args) = @_;
Expand Down

0 comments on commit 565c0e4

Please sign in to comment.