Remove useless if condition.

This commit is contained in:
Daniele Alessandri
2015-07-24 12:40:08 +02:00
parent bb909c573d
commit 2eaf3d8595
@@ -193,10 +193,6 @@ class PhpiredisSocketConnection extends AbstractConnection
*/
private function setSocketOptions($socket, ParametersInterface $parameters)
{
if ($parameters->scheme !== 'tcp') {
return;
}
if (!socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1)) {
$this->emitSocketError();
}