Eclipse is right to point out we can just ditch the else branch.
Change-Id: I816dd9a34b6fd8e1272ad1b8b93c2c5b3120ed4b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
1a9684ec6ce9dae26b3292028f6a2b3fa5d61cc4)
}
return true;
- } else {
- newTip = requireNonNullElse(e.cohort.getCandidate(), newTip);
}
+
+ newTip = requireNonNullElse(e.cohort.getCandidate(), newTip);
}
LOG.debug("{}: aborted transaction {} not found in the queue", logContext, cohort.getIdentifier());