Skip to content

Commit

Permalink
Remove unnecessary check for RUF020 enabled (#11268)
Browse files Browse the repository at this point in the history
## Summary

In #9218 `Rule::NeverUnion` was partially removed from a
`checker.any_enabled` call. This makes the change consistent.

## Test Plan

`cargo test`
  • Loading branch information
tusharsadhwani authored May 3, 2024
1 parent 82dd5e6 commit f3284fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/ruff_linter/src/checkers/ast/analyze/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ pub(crate) fn expression(expr: &Expr, checker: &mut Checker) {
Rule::DuplicateUnionMember,
Rule::RedundantLiteralUnion,
Rule::UnnecessaryTypeUnion,
Rule::NeverUnion,
]) {
// Avoid duplicate checks if the parent is a union, since these rules already
// traverse nested unions.
Expand Down

0 comments on commit f3284fd

Please sign in to comment.