Skip to content

Commit

Permalink
remove handling of null
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder-somar committed Oct 9, 2023
1 parent 6882b19 commit 43427d7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Control/ElementFormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,8 @@ public function finished()

$page = $this->getPage();

if ($page === null) {
return null;
}

while ($page instanceof BaseElement) {
$page = $page->getPage();

if ($page === null) {
return null;
}
}
$controller = Injector::inst()->create($page->getControllerName(), $page->data());
$element = $this->element;
Expand Down

0 comments on commit 43427d7

Please sign in to comment.