Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

don't warn on answers that definitely are empty

  • Loading branch information...
commit e3e5c5770e5758e8ca4e96c08a92dcc927753205 1 parent 9aa68f6
Christian Walde wchristian authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/Net/LastFMAPI.pm
2  lib/Net/LastFMAPI.pm
@@ -317,9 +317,9 @@ sub extract_rows {
317 317 my $main_data = $content->{$main_keys[0]};
318 318 my @data_keys = sort keys %{$main_data};
319 319 unless (@main_keys == 1 && @data_keys == 2 && $data_keys[0] eq '@attr') {
320   - carp "extracting rows may be broken";
321 320 my ( $text, $total ) = ( $main_data->{'#text'}, $main_data->{total} );
322 321 return if defined $text && $text =~ /^\s+$/ && defined $total && $total == 0; # no rows
  322 + carp "extracting rows may be broken";
323 323 }
324 324 %last_response_meta = %{ $main_data->{$data_keys[0]} };
325 325 my $rows = $main_data->{$data_keys[1]};

0 comments on commit e3e5c57

Please sign in to comment.
Something went wrong with that request. Please try again.