Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan committed Feb 24, 2024
1 parent e173a47 commit 16a4f86
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Biodiverse/Indices.pm
Original file line number Diff line number Diff line change
Expand Up @@ -794,13 +794,11 @@ sub parse_dependencies_for_calc {
$self->_convert_to_array( input => $required_args );

foreach my $required_arg ( sort @$reqd_args_a ) {
my $re = qr /^($required_arg)$/
; # match is used in the grep? Was used in now-removed code.
my $re = qr /^($required_arg)$/;
my $is_defined;
CALC_ARG:
foreach
my $calc_arg ( sort grep { $_ =~ $re } keys %$calc_args )
{
my $calc_arg ( sort grep { $_ =~ $re } keys %$calc_args ) {
if ( defined $calc_args->{$calc_arg} ) {
$is_defined++;
last CALC_ARG;
Expand Down

0 comments on commit 16a4f86

Please sign in to comment.