Skip to content

Commit

Permalink
Warnfree tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Nov 24, 2010
1 parent 5e5cbf5 commit d282bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SQL/Abstract/Tree.pm
Expand Up @@ -545,7 +545,7 @@ sub _parenthesis_unroll {

for my $child (@{$ast->[1]}) {
# the current node in this loop is *always* a PAREN
if (not ref $child or not $child->[0] eq 'PAREN') {
if (! ref $child or ! @$child or $child->[0] ne 'PAREN') {
push @children, $child;
next;
}
Expand Down

0 comments on commit d282bb5

Please sign in to comment.