Skip to content

Commit

Permalink
Remove redundant lines in ReferenceExecutor
Browse files Browse the repository at this point in the history
Somehow this was added in #1548 but I fail to see why.

Let's remove it.

This might be the cause for the performance degradation reported in #1548.
  • Loading branch information
ruudk authored and spawnia committed Jun 11, 2024
1 parent 121e250 commit cf779ec
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Executor/ReferenceExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1350,9 +1350,6 @@ protected function executeFields(ObjectType $parentType, $rootValue, array $path
$containsPromise = false;
$results = [];
foreach ($fields as $responseName => $fieldNodes) {
$fieldNodes = $fields[$responseName];
assert($fieldNodes instanceof \ArrayObject, 'The keys of $fields populate $responseName');

$fieldPath = $path;
$fieldPath[] = $responseName;

Expand Down

0 comments on commit cf779ec

Please sign in to comment.