Skip to content

Commit

Permalink
fix(linter): panic in jsdoc/require-param (#3590)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Jun 8, 2024
1 parent 3ae567d commit f0b689d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/jsdoc/require_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f0b689d

Please sign in to comment.