Skip to content

Commit

Permalink
chore: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 1, 2022
1 parent 6666e35 commit a660813
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ export default class InProcessRunner {
// no try/catch so that errors bubble up and are logged with root stack traces
const result = handler(event, lambdaContext, callback)

// // not a Promise, which is not supported by aws
// if (result == null || typeof result.then !== 'function') {
// throw new Error(`Synchronous function execution is not supported.`)
// }

const responses = [callbackWrapper]

// Promise was returned
Expand Down

0 comments on commit a660813

Please sign in to comment.