mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(linter): panic in get_enclosing_function (#4121)
Fixes one of the panics described in #4111
This commit is contained in:
parent
3a0f2aa7ef
commit
2334515247
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ pub fn get_enclosing_function<'a, 'b>(
|
||||||
{
|
{
|
||||||
return Some(current_node);
|
return Some(current_node);
|
||||||
}
|
}
|
||||||
current_node = ctx.nodes().parent_node(current_node.id()).unwrap();
|
current_node = ctx.nodes().parent_node(current_node.id())?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue