Skip to content

Commit

Permalink
[TASK] Remove redundant method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jul 31, 2023
1 parent ae0cc56 commit faa1f84
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Classes/Builder/RenderingContextBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ public function buildRenderingContextFor(
'Controller class ' . $request->getControllerObjectName() . ' caused error: ' . $error->getMessage()
);
}
$controllerContext = clone $renderingContext->getControllerContext($request);
$controllerContext->setRequest($request);
$renderingContext->setControllerContext($controllerContext);
} elseif (method_exists($renderingContext, 'setRequest')) {
$renderingContext->setRequest($request);
}
Expand Down

0 comments on commit faa1f84

Please sign in to comment.