Skip to content

Commit 2b40997

Browse files
committed
refactor: remove unnecessary await from error handling in resolver methods
1 parent f7b8492 commit 2b40997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/event-handler/src/appsync-graphql/AppSyncGraphQLResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class AppSyncGraphQLResolver extends Router {
173173
}
174174

175175
try {
176-
return await this.#withErrorHandling(
176+
return this.#withErrorHandling(
177177
() => this.#executeBatchResolvers(event, context, options),
178178
event[0],
179179
options
@@ -193,7 +193,7 @@ class AppSyncGraphQLResolver extends Router {
193193
}
194194

195195
try {
196-
return await this.#withErrorHandling(
196+
return this.#withErrorHandling(
197197
() => this.#executeSingleResolver(event, context, options),
198198
event,
199199
options

0 commit comments

Comments
 (0)