[tapx-dev] Poosible issue with TAP::Parser::Source::_get_command()

Andy Armstrong andy at hexten.net
Tue Aug 14 13:50:03 BST 2007


On 14 Aug 2007, at 13:20, Leif Eriksen wrote:
> sub _get_command {
>     my ($self) = @_;
>
>     my $commands = $self->source;
>
>     if ('ARRAY' eq ref $commands) {
>       return @{ $commands };
>     }
>
>     return;
> }

Does

sub _get_command { @{ shift->source || [] } }

do the trick?

-- 
Andy Armstrong, hexten.net



More information about the tapx-dev mailing list