Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #177 from Moln/fix/error-handler-no-need-condition
Browse files Browse the repository at this point in the history
Remove condition with after call `handle` in `ErrorHandler`
  • Loading branch information
weierophinney committed Jul 24, 2018
2 parents 257f058 + 25a4eb3 commit de3da68
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Middleware/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface

try {
$response = $handler->handle($request);

if (! $response instanceof ResponseInterface) {
throw new MissingResponseException('Application did not return a response');
}
} catch (Throwable $e) {
$response = $this->handleThrowable($e, $request);
}
Expand Down

0 comments on commit de3da68

Please sign in to comment.