From 8c5b3486ab1970cc1b764dfbec56774c81c7b85d Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 3 May 2019 14:51:17 +0200 Subject: [PATCH] Fixed default list in missing command. --- src/org/april/hebdobot/bot/hooks/MissingHook.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/org/april/hebdobot/bot/hooks/MissingHook.java b/src/org/april/hebdobot/bot/hooks/MissingHook.java index 3db0154..607a960 100644 --- a/src/org/april/hebdobot/bot/hooks/MissingHook.java +++ b/src/org/april/hebdobot/bot/hooks/MissingHook.java @@ -64,10 +64,7 @@ public class MissingHook extends Hook else { StringSet participants = bot.getReview().getParticipants(); - if (participants.isEmpty()) - { - participants.add(bot.getReview().getOwner()); - } + participants.add(bot.getReview().getOwner()); StringSet currentParticipants = topic.getParticipants(); Collection missing = CollectionUtils.subtract(participants, currentParticipants);