mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
SemanticTree: simplify max_depth logic
This commit is contained in:
@@ -73,7 +73,7 @@ fn getSemanticTree(cmd: anytype) !void {
|
||||
.arena = cmd.arena,
|
||||
.prune = params.prune orelse true,
|
||||
.interactive_only = params.interactiveOnly orelse false,
|
||||
.max_depth = params.maxDepth,
|
||||
.max_depth = params.maxDepth orelse std.math.maxInt(u32) - 1,
|
||||
};
|
||||
|
||||
if (params.format) |format| {
|
||||
|
||||
Reference in New Issue
Block a user