removed duplicated code
This commit is contained in:
parent
99aad3dabd
commit
22dc06fb7d
|
@ -82,12 +82,6 @@ public final class ScriptMetaData implements MetaData.Custom {
|
||||||
parser.nextToken();
|
parser.nextToken();
|
||||||
switch (parser.currentName()) {
|
switch (parser.currentName()) {
|
||||||
case "script":
|
case "script":
|
||||||
if (parser.nextToken() == Token.VALUE_STRING) {
|
|
||||||
return parser.text();
|
|
||||||
} else {
|
|
||||||
builder.copyCurrentStructure(parser);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "template":
|
case "template":
|
||||||
if (parser.nextToken() == Token.VALUE_STRING) {
|
if (parser.nextToken() == Token.VALUE_STRING) {
|
||||||
return parser.text();
|
return parser.text();
|
||||||
|
|
Loading…
Reference in New Issue