From 05da5d5b839eabb430f24afb5adf410a52b55f8c Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Wed, 7 Dec 2022 22:38:25 +0100 Subject: remove bogus block --- day_07.zig | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/day_07.zig b/day_07.zig index e11fe2f..8c2658e 100644 --- a/day_07.zig +++ b/day_07.zig @@ -82,13 +82,7 @@ fn build_tree(allocator: std.mem.Allocator, root: *Node, input: []const u8) !voi if (std.mem.eql(u8, line[0..3], "dir")) break :blk NodeType.Dir; break :blk NodeType.File; }, - .Size = blk: { - break :blk std.fmt.parseInt( - usize, - line[0..std.mem.indexOf(u8, line, " ").?], - 0, - ) catch 0; - }, + .Size = std.fmt.parseInt(usize, line[0..std.mem.indexOf(u8, line, " ").?], 0) catch 0, }; current_root.*.append(node); } -- cgit v1.2.3