Skip to content

Commit

Permalink
Remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Mar 25, 2019
1 parent 502a78a commit 924974b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Geo/Coder/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ sub geocode {
CORE::push @{$self->{'log'}}, $log;
Carp::carp(ref($geocoder), " '$location': $@");
$error = $@;
next;
next ENCODER;
}
if(scalar(@rc) == 0) {
my $log = {
Expand All @@ -248,7 +248,6 @@ sub geocode {
result => 'not found',
};
CORE::push @{$self->{'log'}}, $log;
@rc = ();
next ENCODER;
}
POSSIBLE_LOCATION: foreach my $l(@rc) {
Expand All @@ -267,7 +266,6 @@ sub geocode {
result => 'not found',
};
CORE::push @{$self->{'log'}}, $log;
@rc = ();
next ENCODER;
}
print Data::Dumper->new([\$l])->Dump() if(DEBUG >= 2);
Expand All @@ -283,7 +281,6 @@ sub geocode {
error => $l->{'error'}
};
CORE::push @{$self->{'log'}}, $log;
@rc = ();
next ENCODER;
} else {
# Try to create a common interface, helps with HTML::GoogleMaps::V3
Expand Down

0 comments on commit 924974b

Please sign in to comment.