From 1a9684ec6ce9dae26b3292028f6a2b3fa5d61cc4 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 4 Apr 2023 09:07:34 +0200 Subject: [PATCH] Eliminate unneeded else branch Eclipse is right to point out we can just ditch the else branch. Change-Id: I816dd9a34b6fd8e1272ad1b8b93c2c5b3120ed4b Signed-off-by: Robert Varga --- .../controller/cluster/datastore/ShardDataTree.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java index c4bbe5b411..226dd0c869 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java @@ -1336,9 +1336,9 @@ public class ShardDataTree extends ShardDataTreeTransactionParent { } 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()); -- 2.36.6