Skip to content

Commit

Permalink
Merge pull request #6 from rwstauner/remove-duplicate-code
Browse files Browse the repository at this point in the history
Remove duplicate code
  • Loading branch information
karenetheridge committed Aug 23, 2015
2 parents acb6573 + 562ef5a commit ab8af05
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/Catalyst/View/JSON.pm
Expand Up @@ -30,12 +30,6 @@ sub new {
}
}

my $method = $self->can('encode_json');
$self->json_dumper( sub {
my($data, $self, $c) = @_;
$method->($self, $c, $data);
} );

if (my $method = $self->can('encode_json')) {
$self->json_dumper( sub {
my($data, $self, $c) = @_;
Expand Down

0 comments on commit ab8af05

Please sign in to comment.