Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
mushao999 committed Oct 29, 2021
1 parent e652170 commit b47c3d4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ public Map<String, IndexSegments> getIndices() {

final Map<String, List<ShardSegments>> segmentsByIndex = new HashMap<>();
for (ShardSegments shard : shards) {
segmentsByIndex.computeIfAbsent(
shard.getShardRouting().getIndexName(),
k -> new ArrayList<>()
).add(shard);
segmentsByIndex.computeIfAbsent(shard.getShardRouting().getIndexName(), k -> new ArrayList<>()).add(shard);
}
for (Map.Entry<String, List<ShardSegments>> entry : segmentsByIndex.entrySet()) {
indicesSegments.put(entry.getKey(), new IndexSegments(entry.getKey(), entry.getValue()));
Expand Down

0 comments on commit b47c3d4

Please sign in to comment.