Skip to content

Commit ae1510c

Browse files
committed
fixes
1 parent 57a43a0 commit ae1510c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/js_doc.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ impl From<String> for JsDoc {
8686
if current_tag_name == "description" {
8787
if let Some(caps) =
8888
JS_DOC_TAG_WITH_VALUE_RE.captures(&current_tag)
89+
&& let Some(m) = caps.get(2)
8990
{
90-
if let Some(m) = caps.get(2) {
91-
description_override = Some(m.as_str().to_string());
92-
}
91+
description_override = Some(m.as_str().to_string());
9392
}
9493
} else {
9594
tags.push(current_tag.into());

0 commit comments

Comments
 (0)