Removed redundant strtolower in ConsumeMessagesCommand

This commit is contained in:
Valentin Udaltsov 2020-07-29 04:50:45 +03:00 committed by GitHub
parent 84a4c4db97
commit e288834cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ EOF
private function convertToBytes(string $memoryLimit): int
{
$memoryLimit = strtolower($memoryLimit);
$max = strtolower(ltrim($memoryLimit, '+'));
$max = ltrim($memoryLimit, '+');
if (0 === strpos($max, '0x')) {
$max = \intval($max, 16);
} elseif (0 === strpos($max, '0')) {