Removed unnecessary null check

This commit is contained in:
PaulStets 2018-05-13 16:26:09 +03:00
parent 8b92f39039
commit 487f607138

View file

@ -473,13 +473,11 @@ public class DownloadResources extends DownloadResourceGroup {
} }
if (downloadRegions != null) { if (downloadRegions != null) {
for (WorldRegion downloadRegion : downloadRegions) { for (WorldRegion downloadRegion : downloadRegions) {
if (downloadRegion != null) {
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;
} }