Ignore:
Timestamp:
2014-02-25T01:31:24+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r6852 r6883  
    831831        }
    832832        File josmTmpDir = new File(tmpDir, "JOSM");
    833         if (!josmTmpDir.exists()) {
    834             if (!josmTmpDir.mkdirs()) {
    835                 Main.warn("Unable to create temp directory "+josmTmpDir);
    836             }
     833        if (!josmTmpDir.exists() && !josmTmpDir.mkdirs()) {
     834            Main.warn("Unable to create temp directory "+josmTmpDir);
    837835        }
    838836        return josmTmpDir;
Note: See TracChangeset for help on using the changeset viewer.