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

Warn when asserting None #336

Open
nielstron opened this issue Feb 29, 2024 · 0 comments
Open

Warn when asserting None #336

nielstron opened this issue Feb 29, 2024 · 0 comments
Labels
bb: minor Minor issue according to bug bounty categorization bug bounty This issue is prized out as part of the Bug Bounty Program enhancement New feature or request

Comments

@nielstron
Copy link
Contributor

nielstron commented Feb 29, 2024

This pattern is likely to stem from a procedure already doing internal assertions and returning None (to indicate no failure, otherwise would err). Asserting this is equivalent to asserting False, which always fails (likely unintended).

Bug bounty: 200 ADA

@nielstron nielstron added the enhancement New feature or request label Feb 29, 2024
@nielstron nielstron added bug bounty This issue is prized out as part of the Bug Bounty Program bb: minor Minor issue according to bug bounty categorization labels Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb: minor Minor issue according to bug bounty categorization bug bounty This issue is prized out as part of the Bug Bounty Program enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant