Remove empty lambda parameters in handle_function (#7777)

These are marked as redundant by clang-tidy 23
This commit is contained in:
Dana Jansens
2026-09-11 18:22:33 +00:00
committed by GitHub
parent 111ec69b65
commit 09feee7534
+1 -1
View File
@@ -54,7 +54,7 @@ auto HandleParseNode(Context& context, Parse::FunctionIntroducerId node_id)
static auto HandleReturnDecl(Context& context, Parse::AnyReturnDeclId node_id)
-> bool {
auto [expr_node_id, expr_inst_id] = context.node_stack().PopExprWithNodeId();
Context::FormExpr form_expr = [&]() {
Context::FormExpr form_expr = [&] {
if (context.parse_tree().node_kind(node_id) == Parse::ReturnTypeId::Kind) {
return ReturnExprAsForm(context, expr_node_id, expr_inst_id);
} else {