Small and insignificant optimization
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 6 Mar 2016 07:54:38 +0000 (08:54 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 6 Mar 2016 07:54:38 +0000 (08:54 +0100)
src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java

index 5fd5687..1261fc9 100644 (file)
@@ -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();
        }
 
 }