Cleanup boolean literals
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / EffectiveRibInWriter.java
index a5f48fa1f9482f983a7cfb2fcc87825bbe8583d9..19676c1da64557589efc562925f11dcbba869d93 100644 (file)
@@ -617,7 +617,7 @@ final class EffectiveRibInWriter implements PrefixesReceivedCounters, PrefixesIn
 
     private static boolean isLongLivedStaleTable(final Optional<NormalizedNode<?, ?>> optTable) {
         final Optional<NormalizedNode<?, ?>> optAttributes = NormalizedNodes.findNode(optTable, ATTRIBUTES_NID);
-        return optAttributes.isPresent() ? isLongLivedStale(extractContainer(optAttributes)) : false;
+        return optAttributes.isPresent() && isLongLivedStale(extractContainer(optAttributes));
     }
 
     private static ContainerNode effectiveAttributes(final Optional<? extends NormalizedNode<?, ?>> optUptodate) {