Permalink
Browse files

TST: fix for from hash, no throw error

  • Loading branch information...
1 parent 0e5504b commit edeb03bb9f144a6ff012ce7c34a5077c1bf8fe67 @purplefishies purplefishies committed Mar 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WWW/Chargify/Role/FromHash.pm
@@ -48,7 +48,7 @@ sub _apiName_to_attributeName{
my ($self, $api_name) = @_;
confess "api_name is required." unless defined $api_name;
- return $api_hash{$api_name} if %api_hash;
+ return $api_hash{$api_name} if $api_hash{$api_name};
my $meta = $self->meta;
foreach my $attribute ( $meta->get_all_attributes ) {

0 comments on commit edeb03b

Please sign in to comment.