simplified code
authorFabien Potencier <fabien.potencier@gmail.com>
Wed, 25 Apr 2012 06:37:17 +0000 (08:37 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Wed, 25 Apr 2012 06:37:17 +0000 (08:37 +0200)
lib/Twig/NodeVisitor/Escaper.php

index f442ce7..5b1249d 100644 (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)