Explorar o código

[Translation] Removed useless else

Pascal Borreli %!s(int64=14) %!d(string=hai) anos
pai
achega
87452f7515
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
     }
 }