From 22dc06fb7d129bea674b6a59a1b518d481df881e Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 28 Apr 2016 16:26:25 +0200 Subject: [PATCH] removed duplicated code --- .../main/java/org/elasticsearch/script/ScriptMetaData.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/script/ScriptMetaData.java b/core/src/main/java/org/elasticsearch/script/ScriptMetaData.java index c0cf4bc65ca..84b4da4b818 100644 --- a/core/src/main/java/org/elasticsearch/script/ScriptMetaData.java +++ b/core/src/main/java/org/elasticsearch/script/ScriptMetaData.java @@ -82,12 +82,6 @@ public final class ScriptMetaData implements MetaData.Custom { parser.nextToken(); switch (parser.currentName()) { case "script": - if (parser.nextToken() == Token.VALUE_STRING) { - return parser.text(); - } else { - builder.copyCurrentStructure(parser); - } - break; case "template": if (parser.nextToken() == Token.VALUE_STRING) { return parser.text();