AttributeSet helper: skip wantarray

This commit is contained in:
Graham Christensen
2021-10-20 12:52:34 -04:00
parent d2f03ca050
commit 30a7f068b7
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ sub splitPath {
sub enumerate {
my ($self) = @_;
my @paths = sort { length($a) <=> length($b) } @{$self->{"paths"}};
return wantarray ? @paths : \@paths;
return @paths;
}
1;