Skip to content

Commit

Permalink
fix: ensure telefunctionReturn is initialized (fix #58)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Feb 2, 2023
1 parent 9b19d38 commit aa7d82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telefunc/node/server/runTelefunc/executeTelefunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function executeTelefunction(runContext: {

restoreContext(runContext.providedContext)

let telefunctionReturn: unknown
let telefunctionError: unknown
let telefunctionHasErrored = false
let telefunctionAborted = false
Expand Down Expand Up @@ -44,7 +45,6 @@ async function executeTelefunction(runContext: {
onError(err)
}

let telefunctionReturn: unknown
if (!telefunctionHasErrored && !telefunctionAborted) {
assertUsage(
isPromise(resultSync),
Expand Down

0 comments on commit aa7d82e

Please sign in to comment.