Ignore:
Timestamp:
2017-04-13T01:08:58+02:00 (7 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/data/cache/JCSCachedTileLoaderJob.java

    r11535 r11893  
    424424     */
    425425    protected boolean isResponseLoadable(Map<String, List<String>> headerFields, int responseCode, byte[] raw) {
    426         if (raw == null || raw.length == 0 || responseCode >= 400) {
    427             return false;
    428         }
    429         return true;
     426        return raw != null && raw.length != 0 && responseCode < 400;
    430427    }
    431428
Note: See TracChangeset for help on using the changeset viewer.