mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-01 04:57:23 +00:00
simplified code
This commit is contained in:
@@ -142,11 +142,7 @@ class Twig_NodeVisitor_Escaper implements Twig_NodeVisitorInterface
|
||||
return $this->statusStack[count($this->statusStack) - 1];
|
||||
}
|
||||
|
||||
if ($this->defaultStrategy) {
|
||||
return $this->defaultStrategy;
|
||||
}
|
||||
|
||||
return false;
|
||||
return $this->defaultStrategy ? $this->defaultStrategy : false;
|
||||
}
|
||||
|
||||
protected function getEscaperFilter($type, Twig_NodeInterface $node)
|
||||
|
||||
Reference in New Issue
Block a user