From e9ba0b56f67015485f5b5b4a5f763513fb927f09 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 20 Aug 2021 21:51:39 -0400 Subject: [PATCH] BuildFinished : $b -> $build (perlcritic) --- src/lib/Hydra/Event/BuildFinished.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Hydra/Event/BuildFinished.pm b/src/lib/Hydra/Event/BuildFinished.pm index dc94b5ee..4c4aa647 100644 --- a/src/lib/Hydra/Event/BuildFinished.pm +++ b/src/lib/Hydra/Event/BuildFinished.pm @@ -53,9 +53,9 @@ sub execute { # # Otherwise, the dependent builds will remain with notificationpendingsince set # until hydra-notify is started, as buildFinished is never emitted for them. - foreach my $b ($self->{"build"}, @{$self->{"dependents"}}) { - if ($b->finished && defined($b->notificationpendingsince)) { - $b->update({ notificationpendingsince => undef }) + foreach my $build ($self->{"build"}, @{$self->{"dependents"}}) { + if ($build->finished && defined($build->notificationpendingsince)) { + $build->update({ notificationpendingsince => undef }) } }