Removed unused condition

This commit is contained in:
PaulStets 2018-05-13 16:36:39 +03:00
parent 1645de6a91
commit c3d4b9ec13

View file

@ -466,13 +466,11 @@ public class DownloadResources extends DownloadResourceGroup {
OsmandRegions regions = app.getRegions(); OsmandRegions regions = app.getRegions();
DownloadIndexesThread downloadThread = app.getDownloadThread(); DownloadIndexesThread downloadThread = app.getDownloadThread();
List<WorldRegion> downloadRegions = regions.getWoldRegions(latLon); List<WorldRegion> downloadRegions = regions.getWoldRegions(latLon);
if (downloadRegions != null) {
for (WorldRegion downloadRegion : downloadRegions) { for (WorldRegion downloadRegion : downloadRegions) {
if (includeDownloaded || !isIndexItemDownloaded(downloadThread, type, downloadRegion, res)) { if (includeDownloaded || !isIndexItemDownloaded(downloadThread, type, downloadRegion, res)) {
addIndexItem(downloadThread, type, downloadRegion, res); addIndexItem(downloadThread, type, downloadRegion, res);
} }
} }
}
return res; return res;
} }