mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-07 07:57:01 +00:00
[Parser] removed useless else clause.
This commit is contained in:
+2
-2
@@ -350,9 +350,9 @@ class Twig_Parser implements Twig_ParserInterface
|
||||
) {
|
||||
if (false !== strpos((string) $node, chr(0xEF).chr(0xBB).chr(0xBF))) {
|
||||
throw new Twig_Error_Syntax('A template that extends another one cannot have a body but a byte order mark (BOM) has been detected; it must be removed.', $node->getLine(), $this->stream->getFilename());
|
||||
} else {
|
||||
throw new Twig_Error_Syntax('A template that extends another one cannot have a body.', $node->getLine(), $this->stream->getFilename());
|
||||
}
|
||||
|
||||
throw new Twig_Error_Syntax('A template that extends another one cannot have a body.', $node->getLine(), $this->stream->getFilename());
|
||||
}
|
||||
|
||||
// bypass "set" nodes as they "capture" the output
|
||||
|
||||
Reference in New Issue
Block a user