Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
indexer/javascript: do not duplicate comment descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Jun 15, 2022
1 parent bcd053d commit 0da4fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctree/indexer/javascript/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func extractFunctionDocs(s string) string {
}
captures := getCaptures(query, match)
funcDescription := firstCaptureContentOr(comment, captures["func_description"], "")
funcDocs += fmt.Sprintf("%s\n", funcDescription)
funcDocs = fmt.Sprintf("%s\n", funcDescription)

identifierType := firstCaptureContentOr(comment, captures["identifier_type"], "")
if identifierType != "" {
Expand Down

0 comments on commit 0da4fbf

Please sign in to comment.