Skip to content

Commit

Permalink
Small performance optimisation for fix introduced in v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hostep committed Jan 30, 2022
1 parent 0f652b8 commit 27c8c97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Checker/Catalog/Category/UrlPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ public function checkForIncorrectUrlPathAttributeValues(): array
$allCategories = $this->getAllVisibleCategoriesWithStoreId($storeId);

foreach ($allCategories as $category) {
$isOverridden = $this->getIsUrlPathOverridden($category, $storeId);

// we don't care about non overwritten values
if (!$isOverridden && $storeId !== Store::DEFAULT_STORE_ID) {
if ($storeId !== Store::DEFAULT_STORE_ID && !$this->getIsUrlPathOverridden($category, $storeId)) {
continue;
}

Expand Down

0 comments on commit 27c8c97

Please sign in to comment.