Skip to content

Commit

Permalink
Simplify match
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jul 27, 2023
1 parent f2847a7 commit b80a5b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/ruff/src/checkers/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1750,10 +1750,10 @@ impl<'a> Checker<'a> {
self.semantic.restore(snapshot);

match type_param {
ast::TypeParam::TypeVar(ast::TypeParamTypeVar { bound, .. }) => {
if let Some(bound) = bound {
self.visit_expr(bound);
}
ast::TypeParam::TypeVar(ast::TypeParamTypeVar {
bound: Some(bound), ..
}) => {
self.visit_expr(bound);
}
_ => {}
}
Expand Down

0 comments on commit b80a5b5

Please sign in to comment.