Skip to content

Commit 40132af

Browse files
mateusz834mlugg
authored andcommitted
std.zig.AstRlAnnotate: remove pointless switch
This switch has the same cases as the outer one.
1 parent 4937aef commit 40132af

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/std/zig/AstRlAnnotate.zig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,7 @@ fn expr(astrl: *AstRlAnnotate, node: Ast.Node.Index, block: ?*Block, ri: ResultI
340340
for (full.ast.params) |param_node| {
341341
_ = try astrl.expr(param_node, block, ResultInfo.type_only);
342342
}
343-
return switch (tree.nodeTag(node)) {
344-
.call_one,
345-
.call_one_comma,
346-
.call,
347-
.call_comma,
348-
=> false, // TODO: once function calls are passed result locations this will change
349-
else => unreachable,
350-
};
343+
return false; // TODO: once function calls are passed result locations this will change
351344
},
352345

353346
.@"return" => {

0 commit comments

Comments
 (0)