From: David ‘Bombe’ Roden Date: Sun, 6 Mar 2016 07:54:38 +0000 (+0100) Subject: Small and insignificant optimization X-Git-Tag: 0.9.5^2~37 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=961a1cfe36ab3b4f6d74931b16098071eb6aaa95;p=Sone.git Small and insignificant optimization --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java index 5fd5687..1261fc9 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java @@ -248,10 +248,7 @@ public class ListNotificationFilters { return false; } } - if (post.getTime() > System.currentTimeMillis()) { - return false; - } - return true; + return post.getTime() <= System.currentTimeMillis(); } /** @@ -290,10 +287,7 @@ public class ListNotificationFilters { if (!isPostVisible(sone, post.get())) { return false; } - if (reply.getTime() > System.currentTimeMillis()) { - return false; - } - return true; + return reply.getTime() <= System.currentTimeMillis(); } }