Simplify if conditions.
[rhynodge.git] / src / main / java / net / pterodactylus / rhynodge / filters / BlacklistFilter.java
index 676d7be..a519934 100644 (file)
@@ -56,7 +56,7 @@ public class BlacklistFilter implements Filter {
                return new TorrentState(from(torrentState.torrentFiles()).filter(new Predicate<TorrentFile>() {
                        @Override
                        public boolean apply(TorrentFile torrentFile) {
-                               return (torrentFile == null) ? false : nameDoesNotMatchAFilterWord(torrentFile.name());
+                               return (torrentFile != null) && nameDoesNotMatchAFilterWord(torrentFile.name());
                        }
 
                        private boolean nameDoesNotMatchAFilterWord(final String name) {