Skip to content

Return an empty result when no queries are provided in BatchQuery - #822

Open
alexandear wants to merge 1 commit into
ossf:mainfrom
alexandear-org:refactor/return-err-instead-of-panic
Open

Return an empty result when no queries are provided in BatchQuery#822
alexandear wants to merge 1 commit into
ossf:mainfrom
alexandear-org:refactor/return-err-instead-of-panic

Conversation

@alexandear

@alexandear alexandear commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

This PR changes the BatchQuery internal function to return an empty map when no queries are passed instead of panicking.

@alexandear
alexandear force-pushed the refactor/return-err-instead-of-panic branch from e491707 to 0c0c055 Compare December 2, 2025 14:59
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
@alexandear
alexandear force-pushed the refactor/return-err-instead-of-panic branch from 0c0c055 to f22504c Compare December 2, 2025 15:00
@alexandear alexandear changed the title Return an error when no queries are provided in BatchQuery Return an empty result when no queries are provided in BatchQuery Dec 2, 2025
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.

1 participant