Skip to content

Commit

Permalink
Return more quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 2, 2024
1 parent 39dfbd5 commit 6129cb9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -15273,11 +15273,14 @@ sub get_params
{
my $default = shift;

if(ref($_[0]) eq 'HASH') {
# %rc = %{$_[0]};
return $_[0];
}

my %rc;

if(ref($_[0]) eq 'HASH') {
%rc = %{$_[0]};
} elsif(scalar(@_) % 2 == 0) {
if(scalar(@_) % 2 == 0) {
%rc = @_;
} elsif(scalar(@_) == 1) {
if(defined($default)) {
Expand Down

0 comments on commit 6129cb9

Please sign in to comment.