Skip to content

Commit aa17283

Browse files
committed
refactor: clean up
1 parent 4b72a9e commit aa17283

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/router/src/Exceptions/HtmlExceptionRenderer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ public function canRender(Throwable $throwable, Request $request): bool
3838

3939
public function render(Throwable $throwable): Response
4040
{
41-
if ($throwable instanceof ConvertsToResponse) {
42-
return $throwable->toResponse();
43-
}
44-
4541
$response = match (true) {
4642
$throwable instanceof ConvertsToResponse => $throwable->toResponse(),
4743
$throwable instanceof ValidationFailed => new Invalid($throwable->subject, $throwable->failingRules, $throwable->targetClass),

0 commit comments

Comments
 (0)