Skip to content

Commit f3284fd

Browse files
Remove unnecessary check for RUF020 enabled (#11268)
## Summary In #9218 `Rule::NeverUnion` was partially removed from a `checker.any_enabled` call. This makes the change consistent. ## Test Plan `cargo test`
1 parent 82dd5e6 commit f3284fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/ruff_linter/src/checkers/ast/analyze/expression.rs

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ pub(crate) fn expression(expr: &Expr, checker: &mut Checker) {
7878
Rule::DuplicateUnionMember,
7979
Rule::RedundantLiteralUnion,
8080
Rule::UnnecessaryTypeUnion,
81-
Rule::NeverUnion,
8281
]) {
8382
// Avoid duplicate checks if the parent is a union, since these rules already
8483
// traverse nested unions.

0 commit comments

Comments
 (0)