Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marc MacLeod <847542+marbemac@users.noreply.github.com>
  • Loading branch information
marbemac committed Jan 29, 2024
1 parent 1eaa4f6 commit 5d6da10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const responseViaResponseObject = async (
res = await res
} catch (err) {
const errRes = await options.errorHandler(err)
if (!errRes) return
if (!errRes) {
return
}
res = errRes
}
} else {
Expand Down Expand Up @@ -153,7 +155,9 @@ export const getRequestListener = (
if (!res) {
if (options.errorHandler) {
res = await options.errorHandler(e)
if (!res) return
if (!res) {
return
}
} else {
res = handleFetchError(e)
}
Expand Down

0 comments on commit 5d6da10

Please sign in to comment.