Skip to content

Commit 980c8b4

Browse files
Address code review comments
1 parent 632d818 commit 980c8b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestGetAliasesAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ static RestResponse buildRestResponse(
9191
if (aliases.isEmpty() == false) {
9292
// only display indices that have aliases
9393
indicesToDisplay.add(cursor.getKey());
94-
for (final AliasMetadata aliasMetadata : cursor.getValue()) {
94+
for (final AliasMetadata aliasMetadata : aliases) {
9595
returnedAliasNames.add(aliasMetadata.alias());
9696
}
9797
}
9898
}
9999

100-
for (final Map.Entry<String, List<DataStreamAlias>> entry : dataStreamAliases.entrySet()) {
101-
for (final DataStreamAlias dataStreamAlias : entry.getValue()) {
100+
for (final List<DataStreamAlias> dataStreamAliasList : dataStreamAliases.values()) {
101+
for (final DataStreamAlias dataStreamAlias : dataStreamAliasList) {
102102
returnedAliasNames.add(dataStreamAlias.getName());
103103
}
104104
}

0 commit comments

Comments
 (0)