mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
nicer code
This commit is contained in:
parent
26364afd7e
commit
40d4a350fd
@ -193,7 +193,7 @@ public class MetaData implements Iterable<IndexMetaData> {
|
||||
}
|
||||
|
||||
public boolean hasConcreteIndex(String index) {
|
||||
return aliasAndIndexToIndexMap2.get(index) != null;
|
||||
return aliasAndIndexToIndexMap2.containsKey(index);
|
||||
}
|
||||
|
||||
public IndexMetaData index(String index) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user