Skip to content

Commit a74270f

Browse files
author
Stanislav Idolov
authored
ENGCOM-2676: Remove dead code #17401
2 parents df567d1 + 4a1982f commit a74270f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/Cms/Helper/Page.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ public function getPageUrl($pageId = null)
189189
$page = $this->_pageFactory->create();
190190
if ($pageId !== null && $pageId !== $page->getId()) {
191191
$page->setStoreId($this->_storeManager->getStore()->getId());
192-
if (!$page->load($pageId)) {
193-
return null;
194-
}
192+
$page->load($pageId);
195193
}
196194

197195
if (!$page->getId()) {

0 commit comments

Comments
 (0)