-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Bug Description
In index.js, the gfn function's success path (line 601) is missing a return statement, causing the handler to return undefined instead of the value from finalize().
Current Behavior
// Line 601 - success path (BUG):
await finalize(event, context, init, finalError, finalResult);Expected Behavior
// Line 638 - error path (correct):
return await finalize(event, context, init, finalError, finalResult);Impact
- TURBOT_TEST mode: The handler returns
undefinedinstead of{ result, turbot: processEvent }, breaking test assertions on turbot process events - Production mode: Returns
undefinedinstead ofnull(inconsistent with error path)
Fix
Add return before await finalize(...) on line 601.
Metadata
Metadata
Assignees
Labels
No labels