mirror of
https://github.com/predis/predis.git
synced 2026-08-21 03:42:57 +00:00
Remove useless if condition.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user