Преглед изворни кода

[CssSelector] Removed useless else

Pascal Borreli пре 14 година
родитељ
комит
2cbaddfd87
1 измењених фајлова са 2 додато и 2 уклоњено
  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') {
         if ($this->operator == 'exists') {
             return sprintf('%s[%s[%s]]', __CLASS__, $this->selector, $this->formatAttrib());
             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);
     }
     }
 
 
     /**
     /**