-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Problem
At the moment always true comparison like below, won't be linted.
fn main() {
let condition = false;
if !condition || condition {
println!("Hello");
}
}Even though it is redundant.
Proposed Solution
It can be done as a part of:
cairo-lint/src/lints/double_comparison.rs
Line 137 in 90d6037
| impl Lint for RedundantComparison { |
Notes
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog Lint