We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
orelse return
orelse unreachable
1 parent 6912175 commit f7b08a1Copy full SHA for f7b08a1
src/browser/dom/element.zig
@@ -251,11 +251,11 @@ pub const Element = struct {
251
// None of the following can be null.
252
const maybe_html = parser.nodeFirstChild(fragment_node);
253
std.debug.assert(maybe_html != null);
254
- const html = maybe_html.?;
+ const html = maybe_html orelse return;
255
256
const maybe_body = parser.nodeLastChild(html);
257
std.debug.assert(maybe_body != null);
258
- const body = maybe_body.?;
+ const body = maybe_body orelse return;
259
260
const children = try parser.nodeGetChildNodes(body);
261
0 commit comments