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

Remove condition with after call handle in ErrorHandler #177

Merged
merged 1 commit into from
Jul 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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