Skip to content

Commit 7141276

Browse files
So-Frasflo-dup
authored andcommitted
remove a code smell
Signed-off-by: Sophie Frasnedo <[email protected]>
1 parent b016aa3 commit 7141276

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

single-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/styles/AbstractStyleProvider.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ public List<String> getNodeStyles(VoltageLevelGraph graph, Node node, ComponentL
5151
styles.add(StyleClassConstants.FICTITIOUS_NODE_STYLE_CLASS);
5252
}
5353

54-
if (node instanceof BusConnection) {
55-
if (node.isDisconnected()) {
56-
styles.add(StyleClassConstants.DISCONNECTED_BUS_CONNECTION_STYLE_CLASS);
57-
}
54+
if (node instanceof BusConnection && node.isDisconnected()) {
55+
styles.add(StyleClassConstants.DISCONNECTED_BUS_CONNECTION_STYLE_CLASS);
5856
}
5957

6058
return styles;

0 commit comments

Comments
 (0)