Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

less code

  • Loading branch information...
commit c3b44d20a371813ca9b6b59c109d6ce3ee1ebbd7 1 parent e6ad9e4
authored

Showing 1 changed file with 3 additions and 6 deletions. Show diff stats Hide diff stats

  1. +3 6 lib/Geo/Coder/Multimap.pm
9 lib/Geo/Coder/Multimap.pm
@@ -20,12 +20,9 @@ sub new {
20 20
21 21 my $self = bless \ %params, $class;
22 22
23   - if ($params{ua}) {
24   - $self->ua($params{ua});
25   - }
26   - else {
27   - $self->{ua} = LWP::UserAgent->new(agent => "$class/$VERSION");
28   - }
  23 + $self->ua(
  24 + $params{ua} || LWP::UserAgent->new(agent => "$class/$VERSION")
  25 + );
29 26
30 27 if ($self->{debug}) {
31 28 my $dump_sub = sub { $_[0]->dump(maxlength => 0); return };

0 comments on commit c3b44d2

Please sign in to comment.
Something went wrong with that request. Please try again.