Skip to content

Commit 980307d

Browse files
authored
ENGCOM-4177: Remove unwanted condition check #21046
2 parents df24332 + eac498a commit 980307d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function getPageUrl($pageId = null)
187187
{
188188
/** @var \Magento\Cms\Model\Page $page */
189189
$page = $this->_pageFactory->create();
190-
if ($pageId !== null && $pageId !== $page->getId()) {
190+
if ($pageId !== null) {
191191
$page->setStoreId($this->_storeManager->getStore()->getId());
192192
$page->load($pageId);
193193
}

0 commit comments

Comments
 (0)