Skip to content

Commit 27c8c97

Browse files
committed
Small performance optimisation for fix introduced in v1.3.2
1 parent 0f652b8 commit 27c8c97

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Checker/Catalog/Category/UrlPath.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ public function checkForIncorrectUrlPathAttributeValues(): array
6161
$allCategories = $this->getAllVisibleCategoriesWithStoreId($storeId);
6262

6363
foreach ($allCategories as $category) {
64-
$isOverridden = $this->getIsUrlPathOverridden($category, $storeId);
65-
6664
// we don't care about non overwritten values
67-
if (!$isOverridden && $storeId !== Store::DEFAULT_STORE_ID) {
65+
if ($storeId !== Store::DEFAULT_STORE_ID && !$this->getIsUrlPathOverridden($category, $storeId)) {
6866
continue;
6967
}
7068

0 commit comments

Comments
 (0)