Remove a useless check for the payload length.

This commit is contained in:
Daniele Alessandri
2011-01-02 21:55:28 +01:00
parent 1e32f8aaa8
commit 2c761d6c95
+1 -4
View File
@@ -688,16 +688,13 @@ class ResponseReader {
}
$prefix = $header[0];
$payload = strlen($header) > 1 ? substr($header, 1) : '';
if (!isset($this->_prefixHandlers[$prefix])) {
Shared\Utils::onCommunicationException(new MalformedServerResponse(
$connection, "Unknown prefix '$prefix'"
));
}
$handler = $this->_prefixHandlers[$prefix];
return $handler->handle($connection, $payload);
return $handler->handle($connection, substr($header, 1));
}
}