Skip to content

Commit

Permalink
Better variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine committed Jul 10, 2023
1 parent 6608d25 commit 32f265c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ private static Set<UnitType> findTargets(
// Note: uses a single stream instead of a sequence of removeAll() calls for performance.
return enemyUnitTypes.stream()
.filter(
ut -> {
if (cannotTarget.contains(ut)) {
targetUnitType -> {
if (cannotTarget.contains(targetUnitType)) {
return false;
}
if (destroyerPresent) {
return true;
}
return !ut.getUnitAttachment().getCanNotBeTargetedBy().contains(unitType);
return !targetUnitType.getUnitAttachment().getCanNotBeTargetedBy().contains(unitType);
})
.collect(Collectors.toSet());
}
Expand Down

0 comments on commit 32f265c

Please sign in to comment.