File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ function executeImpl(
359
359
( data ) => {
360
360
const initialResult = buildResponse ( data , exeContext . errors ) ;
361
361
const publisher = exeContext . publisher ;
362
- if ( publisher . subsequentPayloads . size > 0 ) {
362
+ if ( publisher . hasNext ( ) ) {
363
363
return {
364
364
initialResult : {
365
365
...initialResult ,
@@ -378,7 +378,7 @@ function executeImpl(
378
378
}
379
379
const initialResult = buildResponse ( result , exeContext . errors ) ;
380
380
const publisher = exeContext . publisher ;
381
- if ( publisher . subsequentPayloads . size > 0 ) {
381
+ if ( publisher . hasNext ( ) ) {
382
382
return {
383
383
initialResult : {
384
384
...initialResult ,
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ export class Publisher {
32
32
this . subsequentPayloads . add ( payload ) ;
33
33
}
34
34
35
+ hasNext ( ) : boolean {
36
+ return this . subsequentPayloads . size > 0 ;
37
+ }
38
+
35
39
filter ( predicate : ( payload : AsyncPayloadRecord ) => boolean ) : void {
36
40
this . subsequentPayloads . forEach ( ( asyncRecord ) => {
37
41
if ( predicate ( asyncRecord ) ) {
You can’t perform that action at this time.
0 commit comments