Changeset 13798 in josm


Ignore:
Timestamp:
2018-05-20T23:45:45+02:00 (6 years ago)
Author:
Don-vip
Message:

see #13937 - code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/OffsetBookmark.java

    r13797 r13798  
    235235     * @param imageryId The identifier
    236236     * @see #getImageryId()
    237      * @since xxx
     237     * @since 13797
    238238     */
    239239    public void setImageryId(String imageryId) {
     
    256256        List<OffsetBookmark> bookmarks = StructUtils.getListOfStructs(
    257257                Config.getPref(), "imagery.offsetbookmarks", null, OffsetBookmark.class);
    258         if (bookmarks == null) {
    259             saveBookmarks();
    260         } else {
     258        if (bookmarks != null) {
    261259            sanitizeBookmarks(bookmarks);
    262260            allBookmarks.addAll(bookmarks);
Note: See TracChangeset for help on using the changeset viewer.