Skip to content

Commit

Permalink
remove redundant code (#12424)
Browse files Browse the repository at this point in the history
### Motivation

Remove  reduncant code

### Modifications

Remove one line reduncant code

(cherry picked from commit 4d4db6b)
  • Loading branch information
aloyszhang authored and codelipenghui committed Dec 20, 2021
1 parent 3e40197 commit 72804d4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public static Map<String, AdvertisedListener> validateAndAnalysisAdvertisedListe
}
}
String hostPort = String.format("%s:%d", uri.getHost(), uri.getPort());
reverseMappings.computeIfAbsent(hostPort, k -> Sets.newTreeSet());
Set<String> sets = reverseMappings.computeIfAbsent(hostPort, k -> Sets.newTreeSet());
sets.add(entry.getKey());
if (sets.size() > 1) {
Expand Down

0 comments on commit 72804d4

Please sign in to comment.