mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
fix(linter): panic in jsdoc/require-param (#3590)
This commit is contained in:
parent
3ae567de9d
commit
f0b689d115
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ fn collect_params(params: &FormalParameters) -> Vec<ParamKind> {
|
|||
let mut collected = vec![];
|
||||
|
||||
for prop in &obj_pat.properties {
|
||||
let name = prop.key.name().expect("Object key");
|
||||
let Some(name) = prop.key.name() else { continue };
|
||||
|
||||
match get_param_name(&prop.value, false) {
|
||||
ParamKind::Single(param) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue