Skip to content

Commit

Permalink
Remove what looks like a useless filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Mar 6, 2024
1 parent 470e1b0 commit be84fa9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/main/java/org/lflang/generator/GeneratorBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,7 @@ public void doGenerate(Resource resource, LFGeneratorContext context) {

List<Resource> allResources = GeneratorUtils.getResources(reactors);
resources.addAll(
allResources.stream()
.filter(
it ->
!Objects.equal(it, context.getFileConfig().resource)
|| mainDef != null && it == mainDef.getReactorClass().eResource())
.map(it -> GeneratorUtils.getLFResource(it, context))
.toList());
allResources.stream().map(it -> GeneratorUtils.getLFResource(it, context)).toList());

GeneratorUtils.accommodatePhysicalActionsIfPresent(
allResources,
Expand Down

0 comments on commit be84fa9

Please sign in to comment.