Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
GraphQL-527: Category Tree Contains null Leaves
Browse files Browse the repository at this point in the history
-- fix code style
  • Loading branch information
naydav committed Mar 29, 2019
1 parent b948b62 commit 8ab95cf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ public function calculate(FieldNode $fieldNode) : int
$depth = count($selections) ? 1 : 0;
$childrenDepth = [0];
foreach ($selections as $node) {
if (
$node->kind === 'InlineFragment'
|| null !== $node->alias
) {
if ($node->kind === 'InlineFragment' || null !== $node->alias) {
continue;
}

Expand Down

0 comments on commit 8ab95cf

Please sign in to comment.