Sfoglia il codice sorgente

[CssSelector] Removed useless else

Pascal Borreli 14 anni fa
parent
commit
2cbaddfd87
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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);
     }
 
     /**