Skip to content

Commit c22cd01

Browse files
committed
remove extra function
1 parent 8ffb37f commit c22cd01

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

src/execution/execute.ts

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,44 +2195,21 @@ async function getNextAsyncStreamItemsResult(
21952195
itemType,
21962196
);
21972197

2198-
const nextStreamItems: StreamItemsRecord = nextAsyncStreamItems(
2199-
streamRecord,
2200-
path,
2201-
index,
2202-
asyncIterator,
2203-
exeContext,
2204-
fieldGroup,
2205-
info,
2206-
itemType,
2207-
);
2208-
2209-
return prependNextStreamItems(result, nextStreamItems);
2210-
}
2211-
2212-
function nextAsyncStreamItems(
2213-
streamRecord: SubsequentResultRecord,
2214-
path: Path,
2215-
initialIndex: number,
2216-
asyncIterator: AsyncIterator<unknown>,
2217-
exeContext: ExecutionContext,
2218-
fieldGroup: FieldGroup,
2219-
info: GraphQLResolveInfo,
2220-
itemType: GraphQLOutputType,
2221-
): StreamItemsRecord {
22222198
const nextStreamItems: StreamItemsRecord = {
22232199
streamRecord,
22242200
result: getNextAsyncStreamItemsResult(
22252201
streamRecord,
22262202
path,
2227-
initialIndex + 1,
2203+
index,
22282204
asyncIterator,
22292205
exeContext,
22302206
fieldGroup,
22312207
info,
22322208
itemType,
22332209
),
22342210
};
2235-
return nextStreamItems;
2211+
2212+
return prependNextStreamItems(result, nextStreamItems);
22362213
}
22372214

22382215
function completeStreamItems(

0 commit comments

Comments
 (0)