We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6927a commit b6e9d26Copy full SHA for b6e9d26
src/main/java/edu/ie3/datamodel/io/extractor/Extractor.java
@@ -51,10 +51,8 @@ public static Set<UniqueInputEntity> extractElements(NestedEntity nestedEntity)
51
if (nestedEntity instanceof HasLine nestedHasLine) {
52
resultingList.add(nestedHasLine.getLine());
53
}
54
- if (nestedEntity instanceof HasEm nestedHasEms) {
55
- if (nestedHasEms.getControllingEm().isPresent()) {
56
- resultingList.add(nestedHasEms.getControllingEm().get());
57
- }
+ if (nestedEntity instanceof HasEm nestedHasEms && nestedHasEms.getControllingEm().isPresent()) {
+ resultingList.add(nestedHasEms.getControllingEm().get());
58
59
60
if (resultingList.contains(null)) {
0 commit comments