remove two similar checks on tempalte name

This commit is contained in:
Shay Banon 2012-03-08 00:05:39 +02:00
parent 76654f1d0d
commit 876caba615
1 changed files with 0 additions and 3 deletions

View File

@ -148,9 +148,6 @@ public class MetaDataIndexTemplateService extends AbstractComponent {
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");
}