Skip to content

Commit

Permalink
Ensure fall through to maxmimd works
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 28, 2018
1 parent adafedc commit 340b191
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Geo/Coder/Free.pm
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ sub geocode {
# ::diag($left, '=>', $alternatives->{$left});
$location =~ s/$left/$alternatives->{$left}/;
$param{'location'} = $location;
return $self->geocode(\%param);
if(my $rc = $self->geocode(\%param)) {
return $rc;
}
}
}
}
Expand Down

0 comments on commit 340b191

Please sign in to comment.