From 4e298a9f1ef0be2365a4ad16fe4493be3a3b2ffe Mon Sep 17 00:00:00 2001 From: Olivier Trichet Date: Sat, 20 Dec 2014 18:03:17 +0100 Subject: [PATCH] Remove not null check on 'this' (not null by definition) --- .../owncloudnewsreader/services/DownloadImagesService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/DownloadImagesService.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/DownloadImagesService.java index 407c9de7..989c0c42 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/DownloadImagesService.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/DownloadImagesService.java @@ -257,8 +257,7 @@ public class DownloadImagesService extends IntentService { if(maxCount == count) { notificationManager.cancel(NOTIFICATION_ID); - if(DownloadImagesService.this != null) - RemoveOldImages(DownloadImagesService.this); + RemoveOldImages(DownloadImagesService.this); } else { NotificationDownloadImages.setProgress(maxCount, count+1, false); NotificationDownloadImages.setContentText("Downloading Images for offline usage - " + (count+1) + "/" + maxCount);