Skip to content

Commit

Permalink
remove two similar checks on tempalte name
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Mar 7, 2012
1 parent 76654f1 commit 876caba
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -148,9 +148,6 @@ private void validate(PutRequest request) throws ElasticSearchException {
if (!request.name.toLowerCase().equals(request.name)) {
throw new InvalidIndexTemplateException(request.name, "name must be lower cased");
}
if (!request.name.toLowerCase().equals(request.name)) {
throw new InvalidIndexTemplateException(request.name, "name must be lower cased");
}
if (request.template.contains(" ")) {
throw new InvalidIndexTemplateException(request.name, "template must not contain a space");
}
Expand Down

0 comments on commit 876caba

Please sign in to comment.