From 3b41cd78bdd17f8a02770e628a962d223f02acfd Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 10 May 2021 21:48:44 +0900 Subject: [PATCH] Remove unnecessary null check --- app/src/main/java/awais/instagrabber/utils/DMUtils.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/utils/DMUtils.java b/app/src/main/java/awais/instagrabber/utils/DMUtils.java index 38c83764..44cab81b 100644 --- a/app/src/main/java/awais/instagrabber/utils/DMUtils.java +++ b/app/src/main/java/awais/instagrabber/utils/DMUtils.java @@ -27,11 +27,6 @@ public final class DMUtils { public static boolean isRead(@NonNull final DirectItem item, @NonNull final Map lastSeenAt, @NonNull final List userIdsToCheck) { - // Further check if directStory exists - // if (read && directStory != null) { - // read = false; - // } - if (item == null) return false; return lastSeenAt.entrySet() .stream() .filter(entry -> userIdsToCheck.contains(entry.getKey()))