Skip to content

Commit

Permalink
simplify return
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Nov 4, 2024
1 parent 29f2440 commit fe08f46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2292,8 +2292,7 @@ function executeSubscription(
);
}

const eventStream = assertEventStream(result);
return eventStream;
return assertEventStream(result);
} catch (error) {
throw locatedError(error, fieldNodes, pathToArray(path));
}
Expand Down

0 comments on commit fe08f46

Please sign in to comment.