std.zig.AstRlAnnotate: remove pointless switch

This switch has the same cases as the outer one.
This commit is contained in:
Mateusz Poliwczak 2025-11-06 17:11:48 +01:00 committed by Matthew Lugg
parent 4937aeff84
commit 40132af3ad

View File

@ -340,14 +340,7 @@ fn expr(astrl: *AstRlAnnotate, node: Ast.Node.Index, block: ?*Block, ri: ResultI
for (full.ast.params) |param_node| {
_ = try astrl.expr(param_node, block, ResultInfo.type_only);
}
return switch (tree.nodeTag(node)) {
.call_one,
.call_one_comma,
.call,
.call_comma,
=> false, // TODO: once function calls are passed result locations this will change
else => unreachable,
};
return false; // TODO: once function calls are passed result locations this will change
},
.@"return" => {