Add braces

This commit is contained in:
17hao
2021-02-03 16:06:16 +08:00
parent 63d291cb47
commit 712851a8a5

View File

@@ -277,8 +277,9 @@ public class TopicManagerServiceImpl implements TopicManagerService {
}
Map<Long, Map<String, TopicDO>> topicMap = new HashMap<>(appList.size());
for (TopicDO topicDO: topicList) {
if (topicDO.getTopicName().equals(CONSUMER_OFFSETS_TOPIC))
if (topicDO.getTopicName().equals(CONSUMER_OFFSETS_TOPIC)) {
continue;
}
Map<String, TopicDO> subTopicMap = topicMap.getOrDefault(topicDO.getClusterId(), new HashMap<>());
subTopicMap.put(topicDO.getTopicName(), topicDO);
topicMap.put(topicDO.getClusterId(), subTopicMap);