mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 23:10:09 +00:00
std.zig.AstRlAnnotate: remove pointless switch
This switch has the same cases as the outer one.
This commit is contained in:
parent
4937aeff84
commit
40132af3ad
@ -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" => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user