Skip to content

fix(templating): return kwargs instead of None in handle_templating#2073

Open
Waqar53 wants to merge 2 commits into567-labs:mainfrom
Waqar53:fix/templating-missing-returns
Open

fix(templating): return kwargs instead of None in handle_templating#2073
Waqar53 wants to merge 2 commits into567-labs:mainfrom
Waqar53:fix/templating-missing-returns

Conversation

@Waqar53
Copy link
Contributor

@Waqar53 Waqar53 commented Feb 8, 2026

Fixed missing return values in handle_templating() function. Previously, the function returned None implicitly in two early-exit cases, which could cause unexpected behavior for callers.

  • Line 122: Return kwargs when messages list is empty
  • Line 127: Return kwargs when no messages found in dict

Waqar53 and others added 2 commits February 8, 2026 22:07
Fixed missing return values in handle_templating() function.
Previously, the function returned None implicitly in two early-exit cases,
which could cause unexpected behavior for callers.

- Line 122: Return kwargs when messages list is empty
- Line 127: Return kwargs when no messages found in dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants