diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2022-04-21 16:08:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 16:08:30 +0200 |
commit | 97afc3bd768c3afec6e2db486dea50a83c29d94a (patch) | |
tree | 4fc375468ff6e9faf84fb943a690c2c3138bcf5b /controller-server | |
parent | 5ce2e40475f0ad660acc96dca93d67f6a148eb99 (diff) |
simplify
Co-authored-by: Valerij Fredriksen <freva@users.noreply.github.com>
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobStatus.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobStatus.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobStatus.java index 1a53b26f9c2..45bf508f026 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobStatus.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobStatus.java @@ -90,7 +90,7 @@ public class JobStatus { static Optional<Run> lastSuccess(NavigableMap<RunId, Run> runs) { return runs.descendingMap().values().stream() - .filter(run -> run.hasEnded() && ! run.hasFailed()) + .filter(Run::hasSucceeded) .findFirst(); } |