Remove superfluous code
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 17 Nov 2016 19:37:42 +0000 (20:37 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 17 Nov 2016 19:37:42 +0000 (20:37 +0100)
src/main/java/net/pterodactylus/sone/template/ReplyGroupFilter.java

index 76ca103..fba51f9 100644 (file)
@@ -71,9 +71,6 @@ public class ReplyGroupFilter implements Filter {
                }
                Map<Post, Map<String, Set<?>>> result = new HashMap<>();
                for (Entry<Post, Set<Sone>> postEntry : postSones.entrySet()) {
-                       if (result.containsKey(postEntry.getKey())) {
-                               continue;
-                       }
                        Map<String, Set<?>> postResult = new HashMap<>();
                        postResult.put("sones", postEntry.getValue());
                        postResult.put("replies", postReplies.get(postEntry.getKey()));