Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor unnecessary try/catch #4057

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Nov 13, 2024

Fixes #3006


if (!data.Any())
if (!data.Any())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually was NEVER true before.

GetData used to throw the exception when it's about to return empty.

@Evangelink Evangelink enabled auto-merge (squash) November 15, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ConsiderEmptyDataSourceAsInconclusive throws to catch the exception on the next line
2 participants