simplified code

This commit is contained in:
Fabien Potencier
2012-04-25 08:37:17 +02:00
parent 67c71201e6
commit ac7907abab
+1 -5
View File
@@ -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)