---
source: crates/ruff/src/rules/flake8_simplify/mod.rs
---
SIM208.py:1:4: SIM208 [*] Use `a` instead of `not (not a)`
  |
1 | if not (not a):  # SIM208
  |    ^^^^^^^^^^^ SIM208
2 |     pass
  |
  = help: Replace with `a`

ℹ Suggested fix
1   |-if not (not a):  # SIM208
  1 |+if a:  # SIM208
2 2 |     pass
3 3 | 
4 4 | if not (not (a == b)):  # SIM208

SIM208.py:4:4: SIM208 [*] Use `a == b` instead of `not (not a == b)`
  |
4 |     pass
5 | 
6 | if not (not (a == b)):  # SIM208
  |    ^^^^^^^^^^^^^^^^^^ SIM208
7 |     pass
  |
  = help: Replace with `a == b`

ℹ Suggested fix
1 1 | if not (not a):  # SIM208
2 2 |     pass
3 3 | 
4   |-if not (not (a == b)):  # SIM208
  4 |+if a == b:  # SIM208
5 5 |     pass
6 6 | 
7 7 | if not a:  # OK


