Skip to content

Commit 8ab95cf

Browse files
committed
GraphQL-527: Category Tree Contains null Leaves
-- fix code style
1 parent b948b62 commit 8ab95cf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ public function calculate(FieldNode $fieldNode) : int
2626
$depth = count($selections) ? 1 : 0;
2727
$childrenDepth = [0];
2828
foreach ($selections as $node) {
29-
if (
30-
$node->kind === 'InlineFragment'
31-
|| null !== $node->alias
32-
) {
29+
if ($node->kind === 'InlineFragment' || null !== $node->alias) {
3330
continue;
3431
}
3532

0 commit comments

Comments
 (0)