Skip to content

Commit

Permalink
Apply suggestion from KingOfSquares
Browse files Browse the repository at this point in the history
here's hoping the "commit suggestion" button doesn't screw me over

Co-authored-by: KingOfSquares <[email protected]>
Signed-off-by: chiddy <[email protected]>
  • Loading branch information
chidddy and KingOfSquares committed Dec 13, 2021
1 parent 2d4f331 commit 65e3839
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/main/java/tc/oc/pgm/filters/FilterParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,7 @@ public GoalFilter parseCaptured(Element el) throws InvalidXMLException {
this.factory.getFeatures().createReference(new Node(el), GoalDefinition.class);

Attribute attrTeam = el.getAttribute("team");
XMLFeatureReference<TeamFactory> team;
if (attrTeam != null) {
team = this.factory.getFeatures().createReference(new Node(attrTeam), TeamFactory.class);

} else {
team = null;
}
XMLFeatureReference<TeamFactory> team = attrTeam != null ? this.factory.getFeatures().createReference(new Node(attrTeam), TeamFactory.class) : null;

return new GoalFilter(goal, team, false);
}
Expand Down

0 comments on commit 65e3839

Please sign in to comment.