Skip to content

Commit

Permalink
Tidied up error message for get_currencies_for_country().
Browse files Browse the repository at this point in the history
  • Loading branch information
manwar committed Oct 28, 2019
1 parent 615e8f7 commit 6d39a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Data/MoneyCurrency.pm
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ reference to an array of strings that are currency codes.
=cut

sub get_currencies_for_country {
croak "get_currency received no arguments" if @_ == 0;
croak "get_currency received more than one argument" if @_ > 1;
croak "get_currencies_for_country received no arguments" if @_ == 0;
croak "get_currencies_for_country received more than one argument" if @_ > 1;
my $country = lc($_[0]);

# Return shallow copy to avoid mutating $rh_currencies_for_country
Expand Down

0 comments on commit 6d39a79

Please sign in to comment.