BuildFinished : $b -> $build (perlcritic)

This commit is contained in:
Graham Christensen 2021-08-20 21:51:39 -04:00
parent 5e10648a98
commit e9ba0b56f6

View file

@ -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 })
}
}