Changeset 17191 in josm


Ignore:
Timestamp:
2020-10-13T21:25:31+02:00 (4 years ago)
Author:
GerdP
Message:

simplify code introduced with r17190

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r17190 r17191  
    793793            for (Way way : node.getParentWays()) {
    794794                List<Node> wayNodes = way.getNodes();
    795                 wayNodes.removeIf(node::equals);
    796                 if (wayNodes.size() < way.getNodesCount()) {
     795                if (wayNodes.removeIf(node::equals)) {
    797796                    if (wayNodes.size() < 2) {
    798797                        deleteWay(way);
Note: See TracChangeset for help on using the changeset viewer.