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

[Translation] Removed useless else

Pascal Borreli пре 14 година
родитељ
комит
87452f7515
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/Symfony/Component/Translation/Interval.php

+ 2 - 2
src/Symfony/Component/Translation/Interval.php

@@ -96,8 +96,8 @@ EOF;
             return log(0);
         } elseif ('+Inf' === $number || 'Inf' === $number) {
             return -log(0);
-        } else {
-            return (int) $number;
         }
+
+        return (int) $number;
     }
 }