From 487f60713889c5b89a8b7e0e9b6749d1b41f013d Mon Sep 17 00:00:00 2001 From: PaulStets Date: Sun, 13 May 2018 16:26:09 +0300 Subject: [PATCH] Removed unnecessary null check --- OsmAnd/src/net/osmand/plus/download/DownloadResources.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java index 7c790e69d6..93b916b2bf 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java @@ -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); } } }