Ignore:
Timestamp:
2017-01-12T23:28:57+01:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S1871 - Two branches in the same conditional structure should not have exactly the same implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java

    r11129 r11462  
    6363
    6464    private void testForError(Way w, Node wayNode, OsmPrimitive p) {
    65         if (wayNode.isOutsideDownloadArea()) {
    66             return;
    67         } else if (wayNode.getReferrers().stream().anyMatch(p1 -> p1.hasTag("route", "ferry"))) {
     65        if (wayNode.isOutsideDownloadArea()
     66                || wayNode.getReferrers().stream().anyMatch(p1 -> p1.hasTag("route", "ferry"))) {
    6867            return;
    6968        } else if (isArea(p)) {
Note: See TracChangeset for help on using the changeset viewer.