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

Commit 0da4fbf

Browse files
Stephen GutekanstStephen Gutekanst
Stephen Gutekanst
authored and
Stephen Gutekanst
committed
indexer/javascript: do not duplicate comment descriptions
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
1 parent bcd053d commit 0da4fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctree/indexer/javascript/indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func extractFunctionDocs(s string) string {
358358
}
359359
captures := getCaptures(query, match)
360360
funcDescription := firstCaptureContentOr(comment, captures["func_description"], "")
361-
funcDocs += fmt.Sprintf("%s\n", funcDescription)
361+
funcDocs = fmt.Sprintf("%s\n", funcDescription)
362362

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

0 commit comments

Comments
 (0)