Skip to content

Commit

Permalink
test exception: Replace while-each with foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Aug 24, 2023
1 parent cc77e12 commit d3d77f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/perl/exception.t
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ my $opts = {};
my $success_func = sub {
my ($arg1, $arg2, %opts) = @_;
push(@$args, $arg1, $arg2);
while (my ($k, $v) = each %opts) {
$opts->{$k} = $v;
foreach my $k (keys %opts) {
$opts->{$k} = $opts{$k};
};
return 100;
};
Expand Down

0 comments on commit d3d77f8

Please sign in to comment.