From 58b7902cfb3ba14b62739d9957edf773acca6df0 Mon Sep 17 00:00:00 2001 From: jhonDoe15 <62393042+jhonDoe15@users.noreply.github.com> Date: Fri, 20 May 2022 16:30:32 +0300 Subject: [PATCH] removed unused variable assignment the variable is returned just after assignment, no need to assign a local variable --- src/main/java/kafdrop/service/KafkaMonitorImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/kafdrop/service/KafkaMonitorImpl.java b/src/main/java/kafdrop/service/KafkaMonitorImpl.java index ab87593a..f33fd917 100644 --- a/src/main/java/kafdrop/service/KafkaMonitorImpl.java +++ b/src/main/java/kafdrop/service/KafkaMonitorImpl.java @@ -99,11 +99,9 @@ public ClusterSummaryVO getClusterSummary(Collection topics) { @Override public List 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 getTopics(String[] topics) {