Skip to content

Commit

Permalink
GH-2432: Remove Unnecessary Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Oct 14, 2022
1 parent 86f6448 commit a9cebb0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ private Collection<NewTopic> newTopics() {
newTopicsMap.remove(entry.getKey());
}
}
Collection<NewTopic> newTopics = new ArrayList<>(newTopicsMap.values());
return newTopics;
return new ArrayList<>(newTopicsMap.values());
}

@Override
Expand Down

0 comments on commit a9cebb0

Please sign in to comment.