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,10 +473,8 @@ public class DownloadResources extends DownloadResourceGroup {
}
if (downloadRegions != null) {
for (WorldRegion downloadRegion : downloadRegions) {
if (downloadRegion != null) {
if (includeDownloaded || !isIndexItemDownloaded(downloadThread, type, downloadRegion, res)) {
addIndexItem(downloadThread, type, downloadRegion, res);
}
if (includeDownloaded || !isIndexItemDownloaded(downloadThread, type, downloadRegion, res)) {
addIndexItem(downloadThread, type, downloadRegion, res);
}
}
}