Simplify some boolean expressions.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Post.java
index 759a8ba..63d4b77 100644 (file)
@@ -45,7 +45,7 @@ public interface Post extends Identified {
 
                @Override
                public boolean apply(Post post) {
-                       return (post == null) ? false : post.getTime() <= System.currentTimeMillis();
+                       return (post != null) && (post.getTime() <= System.currentTimeMillis());
                }
 
        };