AttributeSet helper: skip wantarray

This commit is contained in:
Graham Christensen
2021-12-14 10:16:25 -05:00
parent d2f03ca050
commit 30a7f068b7
2 changed files with 3 additions and 2 deletions
+1 -1
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;