Skip to content

Commit d6d8e85

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent 0e9a5ef commit d6d8e85

File tree

2 files changed

+1
-40
lines changed

2 files changed

+1
-40
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, ..

pyrefly/lib/test/lsp/lsp_interaction/basic.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ fn test_initialize_basic() {
3636
"definitionProvider": true,
3737
"typeDefinitionProvider": true,
3838
"codeActionProvider": {
39-
"codeActionKinds": ["quickfix", "refactor.extract", "refactor.move"]
40-
"codeActionKinds": ["quickfix", "refactor.extract"]
41-
"codeActionKinds": ["quickfix", "refactor.extract", "refactor.rewrite"]
39+
"codeActionKinds": ["quickfix", "refactor.extract", "refactor.move", "refactor.rewrite"]
4240
},
4341
"completionProvider": {
4442
"triggerCharacters": [".", "'", "\""]

0 commit comments

Comments
 (0)