BuildFinished : $b -> $build (perlcritic)
This commit is contained in:
parent
5e10648a98
commit
e9ba0b56f6
|
@ -53,9 +53,9 @@ sub execute {
|
||||||
#
|
#
|
||||||
# Otherwise, the dependent builds will remain with notificationpendingsince set
|
# Otherwise, the dependent builds will remain with notificationpendingsince set
|
||||||
# until hydra-notify is started, as buildFinished is never emitted for them.
|
# until hydra-notify is started, as buildFinished is never emitted for them.
|
||||||
foreach my $b ($self->{"build"}, @{$self->{"dependents"}}) {
|
foreach my $build ($self->{"build"}, @{$self->{"dependents"}}) {
|
||||||
if ($b->finished && defined($b->notificationpendingsince)) {
|
if ($build->finished && defined($build->notificationpendingsince)) {
|
||||||
$b->update({ notificationpendingsince => undef })
|
$build->update({ notificationpendingsince => undef })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue