This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=91711d51200bbe3634b470230f6b86cedf40938e commit 91711d51200bbe3634b470230f6b86cedf40938e Author: Guillem Jover <[email protected]> AuthorDate: Sat Mar 25 19:53:53 2023 +0100 Dpkg::Control::HashCore::Tie: Rename $last to $prev Warned-by: perlcritic Addresses: NamingConventions::ProhibitAmbiguousNames --- scripts/Dpkg/Control/HashCore/Tie.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Dpkg/Control/HashCore/Tie.pm b/scripts/Dpkg/Control/HashCore/Tie.pm index 4a29cd881..7b75e7d42 100644 --- a/scripts/Dpkg/Control/HashCore/Tie.pm +++ b/scripts/Dpkg/Control/HashCore/Tie.pm @@ -128,7 +128,7 @@ sub FIRSTKEY { } sub NEXTKEY { - my ($self, $last) = @_; + my ($self, $prev) = @_; my $parent = $self->[1]; my $found = 0; @@ -136,7 +136,7 @@ sub NEXTKEY { if ($found) { return $key if exists $self->[0]->{lc $key}; } else { - $found = 1 if $key eq $last; + $found = 1 if $key eq $prev; } } return; -- Dpkg.Org's dpkg

