Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 5, 2014
1 parent d739496 commit c9f389f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Mojo/JSON.pm
Expand Up @@ -96,10 +96,7 @@ sub decode {
return $res;
}

sub encode {
my ($self, $ref) = @_;
return Mojo::Util::encode 'UTF-8', _encode_value($ref);
}
sub encode { Mojo::Util::encode 'UTF-8', _encode_value($_[1]) }

sub false {$FALSE}

Expand Down

0 comments on commit c9f389f

Please sign in to comment.