Skip to content

Commit 09c7d71

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent a112332 commit 09c7d71

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

pyrefly/lib/state/lsp/quick_fixes/use_function.rs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -829,43 +829,6 @@ fn match_expr(
829829
match_expr(lhs, rhs, param_set, param_counts, bindings, module_info)
830830
})
831831
}
832-
(
833-
Expr::If(ExprIf {
834-
test: lhs_test,
835-
body: lhs_body,
836-
orelse: lhs_orelse,
837-
..
838-
}),
839-
Expr::If(ExprIf {
840-
test: rhs_test,
841-
body: rhs_body,
842-
orelse: rhs_orelse,
843-
..
844-
}),
845-
) => {
846-
match_expr(
847-
lhs_test,
848-
rhs_test,
849-
param_set,
850-
param_counts,
851-
bindings,
852-
module_info,
853-
) && match_expr(
854-
lhs_body,
855-
rhs_body,
856-
param_set,
857-
param_counts,
858-
bindings,
859-
module_info,
860-
) && match_expr(
861-
lhs_orelse,
862-
rhs_orelse,
863-
param_set,
864-
param_counts,
865-
bindings,
866-
module_info,
867-
)
868-
}
869832
(
870833
Expr::Starred(ExprStarred {
871834
value: lhs_value, ..

0 commit comments

Comments
 (0)