Skip to content

Commit 7afa7d7

Browse files
committed
removed unnecessary empty result check
1 parent 1efed4b commit 7afa7d7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/connection/StreamSocket.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ public function read(int $length = 2048): string
100100
if (stream_get_meta_data($this->stream)["timed_out"])
101101
throw ConnectionTimeoutException::createFromTimeout($this->timeout);
102102

103-
if (empty($res))
104-
throw new ConnectException('Read error');
105-
106103
if (Bolt::$debug)
107104
$this->printHex($res, false);
108105

0 commit comments

Comments
 (0)