Cleanup argument handling

This commit is contained in:
Chris 2016-09-25 15:01:20 +01:00
parent 47e978c44a
commit 29015e28a4

View File

@ -500,12 +500,10 @@ sub array_or_arrayref {
if(scalar(@args) > 1) {
return \@args;
} else(scalar(@args) == 1) {
if(ref($args[0]) eq "ARRAY") {
return $args[0];
} else {
return [ $args[0] ];
}
} elsif(ref($args[0]) eq "ARRAY") {
return $args[0];
} else {
return [ $args[0] ];
}
}