- Collection<String> currentCandidates = addToCurrentCandidates(entityId, candidate);
- shard.tell(new CandidateAdded(entityId, candidate, new ArrayList<>(currentCandidates)), shard);
- } else if(type == ModificationType.DELETE || type == ModificationType.DISAPPEARED) {
+ Collection<String> newCandidates = addToCurrentCandidates(entityId, candidate);
+ shard.tell(new CandidateAdded(entityId, candidate, new ArrayList<>(newCandidates)), shard);
+ } else if (type == ModificationType.DELETE || type == ModificationType.DISAPPEARED) {