Skip to content

Commit 10ec412

Browse files
committed
Merge branch '2.3-devlop#463' of github.com:XxXgeoXxX/graphql-ce into 2.3-devlop#463
2 parents 5287f98 + b676132 commit 10ec412

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider

1 file changed

+4
-2
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/CategoryTree.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function __construct(
8585
public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId): \Iterator
8686
{
8787
$categoryQuery = $resolveInfo->fieldNodes[0];
88-
if ($this->isCategoryActive($rootCategoryId) == false) {
88+
if ($this->isCategoryActive($rootCategoryId) === false) {
8989
throw new GraphQlNoSuchEntityException(__('Category doesn\'t exist'));
9090
}
9191

@@ -151,9 +151,11 @@ private function joinAttributesRecursively(Collection $collection, FieldNode $fi
151151
}
152152

153153
/**
154+
* Check if provided category active
155+
*
154156
* @param int $rootCategoryId
155157
* @return bool
156-
* @throws \Exception
158+
* @throws \Magento\Framework\Exception\LocalizedException
157159
*/
158160
private function isCategoryActive(int $rootCategoryId) : bool
159161
{

0 commit comments

Comments
 (0)