Ignore:
Timestamp:
2016-12-13T02:16:07+01:00 (2 years ago)
Author:
Don-vip
Message:

sonar - squid:S1066 - Collapsible "if" statements should be merged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java

    r10212 r11386  
    132132                }
    133133            }
    134             if (strategy.isCloseChangesetAfterUpload()) {
    135                 if (changeset != null && changeset.getId() > 0) {
    136                     OsmApi.getOsmApi().closeChangeset(changeset, monitor.createSubTaskMonitor(0, false));
    137                 }
     134            if (strategy.isCloseChangesetAfterUpload() && changeset != null && changeset.getId() > 0) {
     135                OsmApi.getOsmApi().closeChangeset(changeset, monitor.createSubTaskMonitor(0, false));
    138136            }
    139137        } catch (OsmTransferException sxe) {
Note: See TracChangeset for help on using the changeset viewer.