Skip to content

Commit

Permalink
removed unused variable assignment (#379)
Browse files Browse the repository at this point in the history
the variable is returned just after assignment, no need to assign a local variable
  • Loading branch information
jhonDoe15 authored May 23, 2022
1 parent 908569d commit d5aa49b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/kafdrop/service/KafkaMonitorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ public ClusterSummaryVO getClusterSummary(Collection<TopicVO> topics) {

@Override
public List<TopicVO> getTopics() {
final var topicVos = getTopicMetadata(highLevelConsumer.getAllTopics()).values().stream()
return getTopicMetadata(highLevelConsumer.getAllTopics()).values().stream()
.sorted(Comparator.comparing(TopicVO::getName))
.collect(Collectors.toList());

return topicVos;
}

public List<TopicVO> getTopics(String[] topics) {
Expand Down

0 comments on commit d5aa49b

Please sign in to comment.