Skip to content

Commit

Permalink
remove a code smell
Browse files Browse the repository at this point in the history
Signed-off-by: Sophie Frasnedo <[email protected]>
  • Loading branch information
So-Fras authored and flo-dup committed Jun 7, 2023
1 parent b016aa3 commit 7141276
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ public List<String> getNodeStyles(VoltageLevelGraph graph, Node node, ComponentL
styles.add(StyleClassConstants.FICTITIOUS_NODE_STYLE_CLASS);
}

if (node instanceof BusConnection) {
if (node.isDisconnected()) {
styles.add(StyleClassConstants.DISCONNECTED_BUS_CONNECTION_STYLE_CLASS);
}
if (node instanceof BusConnection && node.isDisconnected()) {
styles.add(StyleClassConstants.DISCONNECTED_BUS_CONNECTION_STYLE_CLASS);
}

return styles;
Expand Down

0 comments on commit 7141276

Please sign in to comment.