Skip to content

Commit 5c7d4d1

Browse files
committed
polish(incremental): remove unnecessary helper
improves readability at the cost of pushing and then immediate popping
1 parent ab52e2f commit 5c7d4d1

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/execution/IncrementalGraph.ts

+3-10
Original file line numberDiff line numberDiff line change
@@ -309,19 +309,12 @@ export class IncrementalGraph {
309309
}
310310
}
311311

312-
private *_yieldCurrentCompletedIncrementalData(
313-
first: IncrementalDataRecordResult,
314-
): Generator<IncrementalDataRecordResult> {
315-
yield first;
316-
yield* this.currentCompletedBatch();
317-
}
318-
319312
private _enqueue(completed: IncrementalDataRecordResult): void {
313+
this._completedQueue.push(completed);
320314
const next = this._nextQueue.shift();
321-
if (next !== undefined) {
322-
next(this._yieldCurrentCompletedIncrementalData(completed));
315+
if (next === undefined) {
323316
return;
324317
}
325-
this._completedQueue.push(completed);
318+
next(this.currentCompletedBatch());
326319
}
327320
}

0 commit comments

Comments
 (0)