Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
housengw committed Mar 8, 2022
1 parent 8a6a589 commit aebac86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions org.lflang/src/org/lflang/generator/GeneratorUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ private GeneratorUtils() {
* Return the target declaration found in the given resource.
*/
public static TargetDecl findTarget(Resource resource) {
TargetDecl targetDecl = null;
return findAll(resource, TargetDecl.class).iterator().next();
return targetDecl;
return findAll(resource, TargetDecl.class).iterator().next();
}

/**
Expand Down

0 comments on commit aebac86

Please sign in to comment.