From be6f7403cab6ff475ae647ab9fee651a70444176 Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sun, 30 Jun 2024 08:56:09 -0700 Subject: [PATCH] Shave off one more line --- core/src/main/java/org/lflang/generator/GeneratorUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/org/lflang/generator/GeneratorUtils.java b/core/src/main/java/org/lflang/generator/GeneratorUtils.java index 5db8c0c2f9..bda5a5cf2e 100644 --- a/core/src/main/java/org/lflang/generator/GeneratorUtils.java +++ b/core/src/main/java/org/lflang/generator/GeneratorUtils.java @@ -87,8 +87,7 @@ public static Iterable findAll(Resource resource, Class nodeType) { public static Set getResources(Iterable reactors) { Set visited = new LinkedHashSet<>(); for (Reactor r : reactors) { - Resource resource = r.eResource(); - if (!visited.contains(resource)) { + if (!visited.contains(r.eResource())) { addInheritedResources(r, visited); } }