Permalink
Browse files

minor changes

  • Loading branch information...
1 parent 7e3cb74 commit c6a6e7ed77be47255cbda0fc8c807e2ace5e4dee @afiskon committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Sitemap/XML/Parser.pm6
@@ -33,7 +33,7 @@ method parse ( Str $data ) {
unless %item{'name'} eq [|] qw/loc lastmod changefreq priority/ {
die "Unexpected tag '" ~ %item{'name'} ~ "' found";
}
- unless @( %item{'data'} ).elems == 1 && %item{'data'}[0].isa('Str') {
+ unless @( %item{'data'} ) == 1 && %item{'data'}[0].isa('Str') {
die "Invalid tag value for '" ~ %item{'name'} ~ "'";
}
%info{ %item{'name'} } = %item{'data'}[0];

0 comments on commit c6a6e7e

Please sign in to comment.