authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-01 13:31:02-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:13-07:00
logb5baa41077dce5ef61667e76d80835c0792a2fc4
tree0d90f997ec59eb5d1cec30c9824b545503cd916b
parenta7754d219a60fdc15d3bff0d6d2ac7fee9f7c4db

fix zig fmt crash


1 files changed, 1 insertions(+), 1 deletions(-)

src/main.zig+1-1
......@@ -5120,8 +5120,8 @@ fn fmtPathFile(
51205120 var tree = try Ast.parse(gpa, source_code, .zig);
51215121 defer tree.deinit(gpa);
51225122
5123 try printAstErrorsToStderr(gpa, tree, file_path, fmt.color);
51245123 if (tree.errors.len != 0) {
5124 try printAstErrorsToStderr(gpa, tree, file_path, fmt.color);
51255125 fmt.any_error = true;
51265126 return;
51275127 }