Skip to content

Commit fedf419

Browse files
committed
polish
1 parent c9ed12c commit fedf419

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/execution/execute.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,6 @@ async function completeAsyncIteratorValue(
12531253
break;
12541254
}
12551255

1256-
const itemPath = addPath(path, index, undefined);
12571256
let iteration;
12581257
try {
12591258
// eslint-disable-next-line no-await-in-loop
@@ -1272,17 +1271,15 @@ async function completeAsyncIteratorValue(
12721271
break;
12731272
}
12741273

1275-
const item = iteration.value;
1276-
12771274
containsPromise = completeMaybePromisedListItemValue(
1278-
item,
1275+
iteration.value,
12791276
completedResults,
12801277
graphqlWrappedResult,
12811278
exeContext,
12821279
itemType,
12831280
fieldDetailsList,
12841281
info,
1285-
itemPath,
1282+
addPath(path, index, undefined),
12861283
incrementalContext,
12871284
deferMap,
12881285
);
@@ -1407,8 +1404,6 @@ function completeIterableValue(
14071404

14081405
// No need to modify the info object containing the path,
14091406
// since from here on it is not ever accessed by resolver functions.
1410-
const itemPath = addPath(path, index, undefined);
1411-
14121407
containsPromise = completeMaybePromisedListItemValue(
14131408
item,
14141409
completedResults,
@@ -1417,7 +1412,7 @@ function completeIterableValue(
14171412
itemType,
14181413
fieldDetailsList,
14191414
info,
1420-
itemPath,
1415+
addPath(path, index, undefined),
14211416
incrementalContext,
14221417
deferMap,
14231418
);

0 commit comments

Comments
 (0)