---
source: crates/ruff_linter/src/rules/ruff/mod.rs
snapshot_kind: text
---
RUF034.py:5:5: RUF034 Useless `if`-`else` condition
  |
4 | # Invalid
5 | x = 1 if True else 1
  |     ^^^^^^^^^^^^^^^^ RUF034
6 | 
7 | # Invalid
  |

RUF034.py:8:5: RUF034 Useless `if`-`else` condition
   |
 7 | # Invalid
 8 | x = "a" if True else "a"
   |     ^^^^^^^^^^^^^^^^^^^^ RUF034
 9 | 
10 | # Invalid
   |

RUF034.py:11:5: RUF034 Useless `if`-`else` condition
   |
10 | # Invalid
11 | x = 0.1 if False else 0.1
   |     ^^^^^^^^^^^^^^^^^^^^^ RUF034
   |
