Skip to content

Commit 6001507

Browse files
removed else after throwing exception
1 parent 5e9b071 commit 6001507

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/connection/Socket.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ public function read(int $length = 2048): string
102102
if ($readed === false) {
103103
$code = socket_last_error($this->socket);
104104
throw new ConnectException(socket_strerror($code), $code);
105-
} else {
106-
$output .= $readed;
107105
}
106+
$output .= $readed;
108107
} while (mb_strlen($output, '8bit') < $length);
109108

110109
if (Bolt::$debug)

0 commit comments

Comments
 (0)