Skip to content

Commit

Permalink
ReporterMany: Replace while-each with foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Sep 4, 2024
1 parent 9c84dc9 commit ac631f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/perl/ReporterMany.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ sub _rep_setup
# initialise with current "global" CAF::Reporter settings
# if DEBUGLV is not set
if (! exists($self->{$DEBUGLV})) {
while (my ($opt, $val) = each (%$CAF::Reporter::_REP_SETUP)) {
$self->{$opt} = $val;
foreach my $opt (keys %{$CAF::Reporter::_REP_SETUP}) {
$self->{$opt} = ${$CAF::Reporter::_REP_SETUP}{$opt};
}
}

Expand Down

0 comments on commit ac631f2

Please sign in to comment.