Ignore:
Timestamp:
2017-04-13T01:08:58+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S1126 - Return of boolean expressions should not be wrapped into an "if-then-else" statement

File:
1 edited

Legend:

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

    r11879 r11893  
    11921192     */
    11931193    public static boolean isLocalUrl(String url) {
    1194         if (url == null || url.startsWith("http://") || url.startsWith("https://") || url.startsWith("resource://"))
    1195             return false;
    1196         return true;
     1194        return url != null && !url.startsWith("http://") && !url.startsWith("https://") && !url.startsWith("resource://");
    11971195    }
    11981196
Note: See TracChangeset for help on using the changeset viewer.