Skip to content

Commit 7605e43

Browse files
committed
reuse variable
1 parent f4fdc55 commit 7605e43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/execution/execute.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,8 @@ function completeObjectValue(
17281728
incrementalContext: IncrementalContext | undefined,
17291729
deferMap: ReadonlyMap<DeferUsage, DeferredFragmentRecord> | undefined,
17301730
): PromiseOrValue<GraphQLWrappedResult<ObjMap<unknown>>> {
1731-
const abortSignal = exeContext.validatedExecutionArgs.abortSignal;
1731+
const validatedExecutionArgs = exeContext.validatedExecutionArgs;
1732+
const abortSignal = validatedExecutionArgs.abortSignal;
17321733
if (abortSignal?.aborted) {
17331734
throw locatedError(
17341735
new Error(abortSignal.reason),
@@ -1743,7 +1744,7 @@ function completeObjectValue(
17431744
if (returnType.isTypeOf) {
17441745
const isTypeOf = returnType.isTypeOf(
17451746
result,
1746-
exeContext.validatedExecutionArgs.contextValue,
1747+
validatedExecutionArgs.contextValue,
17471748
info,
17481749
);
17491750

0 commit comments

Comments
 (0)