Cleanup argument handling
This commit is contained in:
parent
47e978c44a
commit
29015e28a4
@ -500,12 +500,10 @@ sub array_or_arrayref {
|
|||||||
|
|
||||||
if(scalar(@args) > 1) {
|
if(scalar(@args) > 1) {
|
||||||
return \@args;
|
return \@args;
|
||||||
} else(scalar(@args) == 1) {
|
} elsif(ref($args[0]) eq "ARRAY") {
|
||||||
if(ref($args[0]) eq "ARRAY") {
|
return $args[0];
|
||||||
return $args[0];
|
} else {
|
||||||
} else {
|
return [ $args[0] ];
|
||||||
return [ $args[0] ];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user