We do not need to perform an explicit nullness check, as we can simply
call equals on a constant.
Change-Id: Ibb713ea423dcc7b17e4a9a90541cd475bf03de35
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
if (config != null) {
final NeighborPeerGroupConfig config1 = config.augmentation(NeighborPeerGroupConfig.class);
if (config1 != null) {
- final String peerGroup = config1.getPeerGroup();
- return peerGroup != null && peerGroup.equals(APPLICATION_PEER_GROUP_NAME);
+ return APPLICATION_PEER_GROUP_NAME.equals(config1.getPeerGroup());
}
}
return false;