Skip to content

Commit

Permalink
Only add type when sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 19, 2018
1 parent f6d9026 commit 68251c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion createdatabase.PL
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ if(my $oa = $ENV{'OPENADDR_HOME'}) {
if($post_code) {
$post_code = uc($post_code);
}
if(my $type = $c{'street_type'}) {
if($c{'street_name'} && (my $type = $c{'street_type'})) {
$c{'street_name'} .= " $type";
}
if($number && ($c{'property_identifier'} ne $number)) {
Expand Down

0 comments on commit 68251c5

Please sign in to comment.