IndexType: Make elasticsearch candidate check consistent w/ constructor

By means of also converting the passed type candidate to lowercase,
before doing the said check.

Change-Id: I99867c4f2b1590b965a9f692e795b02b0d19be1c
This commit is contained in:
Marco Miller
2019-10-03 18:29:07 -04:00
parent f27975aaa5
commit 66dcab2eda

View File

@@ -58,7 +58,7 @@ public class IndexType {
}
public static boolean isElasticsearch(String type) {
return type.equals(ELASTICSEARCH);
return type.toLowerCase().equals(ELASTICSEARCH);
}
@Override