Skip to content

Commit 30268fa

Browse files
committed
Optimized code
1 parent 2f826f7 commit 30268fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function onHandShake(SwooleRequest $request, SwooleResponse $response): v
204204
} finally {
205205
isset($fd) && $this->getSender()->setResponse($fd, null);
206206
// Send the Response to client.
207-
if (! $psr7Response || ! $psr7Response instanceof Psr7Response) {
207+
if (! isset($psr7Response) || ! $psr7Response instanceof Psr7Response) {
208208
return;
209209
}
210210
$this->responseEmitter->emit($psr7Response, $response, true);

0 commit comments

Comments
 (0)