Skip to content

Commit

Permalink
fix test coverage
Browse files Browse the repository at this point in the history
TODO: add back test
  • Loading branch information
yaacovCR committed Dec 17, 2023
1 parent 026044f commit d10bf74
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/execution/IncrementalPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,14 +587,14 @@ export class IncrementalPublisher {
let maxLength: number | undefined;
let idWithLongestPath: string | undefined;
for (const deferredFragmentRecord of deferredFragmentRecords) {
const id = deferredFragmentRecord.id;
if (id === undefined) {
continue;
}
const length = deferredFragmentRecord.path.length;
if (maxLength === undefined || length > maxLength) {
maxLength = length;
idWithLongestPath = id;
if (deferredFragmentRecord.id !== undefined) {
// pending must have been sent
const id = deferredFragmentRecord.id;
const length = deferredFragmentRecord.path.length;
if (maxLength === undefined || length > maxLength) {
maxLength = length;
idWithLongestPath = id;
}
}
}
const subPath = deferredGroupedFieldSetRecord.path.slice(maxLength);
Expand Down

0 comments on commit d10bf74

Please sign in to comment.