Explorar el Código

[CssSelector] Removed useless else

Pascal Borreli hace 14 años
padre
commit
2cbaddfd87
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Symfony/Component/CssSelector/Node/AttribNode.php

+ 2 - 2
src/Symfony/Component/CssSelector/Node/AttribNode.php

@@ -55,9 +55,9 @@ class AttribNode implements NodeInterface
     {
         if ($this->operator == 'exists') {
             return sprintf('%s[%s[%s]]', __CLASS__, $this->selector, $this->formatAttrib());
-        } else {
-            return sprintf('%s[%s[%s %s %s]]', __CLASS__, $this->selector, $this->formatAttrib(), $this->operator, $this->value);
         }
+
+        return sprintf('%s[%s[%s %s %s]]', __CLASS__, $this->selector, $this->formatAttrib(), $this->operator, $this->value);
     }
 
     /**