Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Added missing tap()
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Aug 19, 2020
1 parent ca8fb53 commit 0902d43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/HttpApi/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ public function onError(ConnectionInterface $connection, Exception $exception)
'error' => $exception->getMessage(),
]));

$connection->send(\GuzzleHttp\Psr7\str($response));

$connection->close();
tap($connection)->send(\GuzzleHttp\Psr7\str($response))->close();
}

/**
Expand Down

0 comments on commit 0902d43

Please sign in to comment.