Skip to content

Commit aa16c61

Browse files
committed
run prettier
1 parent 8137767 commit aa16c61

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/execution/execute.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,9 @@ function createSourceEventStreamImpl(
19911991
try {
19921992
const eventStream = executeSubscription(exeContext);
19931993
if (isPromise(eventStream)) {
1994-
return eventStream.then(undefined, (error: unknown) => ({ errors: [error as GraphQLError] }));
1994+
return eventStream.then(undefined, (error: unknown) => ({
1995+
errors: [error as GraphQLError],
1996+
}));
19951997
}
19961998

19971999
return eventStream;
@@ -2066,9 +2068,11 @@ function executeSubscription(
20662068
const result = resolveFn(rootValue, args, contextValue, info);
20672069

20682070
if (isPromise(result)) {
2069-
return result.then(assertEventStream).then(undefined, (error: unknown) => {
2070-
throw locatedError(error, fieldNodes, pathToArray(path));
2071-
});
2071+
return result
2072+
.then(assertEventStream)
2073+
.then(undefined, (error: unknown) => {
2074+
throw locatedError(error, fieldNodes, pathToArray(path));
2075+
});
20722076
}
20732077

20742078
return assertEventStream(result);

0 commit comments

Comments
 (0)