Skip to content

Commit

Permalink
using predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu-Wu committed Oct 14, 2013
1 parent 02b31c2 commit 80c70e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Regru/API/Role/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ sub api_request {
input_format => 'json',
);

$post_params{lang} = $self->lang if defined $self->lang;
$post_params{io_encoding} = $self->io_encoding if defined $self->io_encoding;
$post_params{lang} = $self->lang if $self->has_lang;
$post_params{io_encoding} = $self->io_encoding if $self->has_io_encoding;

$self->debug_warn('API request:', $url, "\n", 'with params:', \%params) if $self->debug;

Expand Down

0 comments on commit 80c70e3

Please sign in to comment.