Revert: Parentheses for null check

parent d0f4e93a
Pipeline #81390 passed with stage
in 4 minutes and 14 seconds
......@@ -32,8 +32,9 @@ public class ClusterHelper {
ExpandedComponentInstanceSymbol compTarget = c.getTargetPort().getComponentInstance().orElse(null);
if (compSource == null || compTarget == null) {
Log.error("ComponentInstance of source or target not found!");
if (!compSource.equals(compTarget))
graph.addEdge(compSource, compTarget);
}
if (!compSource.equals(compTarget)) {
graph.addEdge(compSource, compTarget);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment