Handle the case where there are no builds and no previous eval
This commit is contained in:
parent
db09760e8c
commit
8f31935ffa
|
@ -194,7 +194,7 @@ sub checkJobset {
|
||||||
$ev->builds->update({iscurrent => 1});
|
$ev->builds->update({iscurrent => 1});
|
||||||
} else {
|
} else {
|
||||||
print STDERR " created cached eval ", $ev->id, "\n";
|
print STDERR " created cached eval ", $ev->id, "\n";
|
||||||
$prevEval->builds->update({iscurrent => 1});
|
$prevEval->builds->update({iscurrent => 1}) if defined $prevEval;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue