Skip to content

Commit 205b651

Browse files
authored
traversal.help: deduplicate stepDocs (ShiftLeftSecurity#428)
thanks @einstueckkaese
1 parent ea0b480 commit 205b651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

traversal/src/main/scala/overflowdb/traversal/help/TraversalHelp.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TraversalHelp(searchPackages: DocSearchPackages) {
4848

4949
val table = Table(
5050
columnNames = if (verbose) ColumnNamesVerbose else ColumnNames,
51-
rows = stepDocs.sortBy(_.methodName).map { stepDoc =>
51+
rows = stepDocs.distinct.sortBy(_.methodName).map { stepDoc =>
5252
val baseColumns = List(s".${stepDoc.methodName}", stepDoc.doc.info)
5353
if (verbose) baseColumns :+ stepDoc.traversalClassName
5454
else baseColumns

0 commit comments

Comments
 (0)