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

New rule: Remove useless binary comparisons with bool #89

Closed
meziantou opened this issue Aug 11, 2019 · 0 comments · Fixed by #143
Closed

New rule: Remove useless binary comparisons with bool #89

meziantou opened this issue Aug 11, 2019 · 0 comments · Fixed by #143

Comments

@meziantou
Copy link
Owner

meziantou commented Aug 11, 2019

bool condition;
if (condition == true) // should be if (condition)
if (condition == false) // should be if (!condition)
louis-z added a commit to louis-z/Meziantou.Analyzer that referenced this issue Mar 25, 2020
louis-z added a commit to louis-z/Meziantou.Analyzer that referenced this issue Mar 29, 2020
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 a pull request may close this issue.

1 participant