CoffeeToWaterRatio: Renaming aliases to be more explicit

master
Rob 2016-06-09 13:10:05 +01:00
parent 693c0e415c
commit dbd21dad71
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ my %wt = (
}
);
my %units = (
my %unit_alias = (
'oz' => 'ounce',
'ounces' => 'ounce',
'g' => 'gram',
@ -63,7 +63,7 @@ handle remainder => sub {
return unless $weight > 0 && $weight <= $MAX_WEIGHT;
my $lc_unit = lc($unit);
$lc_unit = $units{$lc_unit} if defined $units{$lc_unit};
$lc_unit = $unit_alias{$lc_unit} if defined $unit_alias{$lc_unit};
return unless defined $wt{$lc_unit};