diff options
author | Christian Segundo | 2022-12-07 22:38:25 +0100 |
---|---|---|
committer | Christian Segundo | 2022-12-07 22:38:25 +0100 |
commit | 05da5d5b839eabb430f24afb5adf410a52b55f8c (patch) | |
tree | b0d2b4c7046450a6a88a878184dc7a9ff373d206 /day_07.zig | |
parent | be2c84d0f69c3cb9dc747a61a782e9fcd8ca7b4d (diff) | |
download | advent-of-zig-2022-05da5d5b839eabb430f24afb5adf410a52b55f8c.tar.gz |
remove bogus block
Diffstat (limited to 'day_07.zig')
-rw-r--r-- | day_07.zig | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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); } |