Skip to content

Commit 4c32e05

Browse files
committed
removed details tag loop as it was unnecessary
1 parent caaaef2 commit 4c32e05

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

utils/outputwriter/outputcontent.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -777,19 +777,6 @@ func getDependencyPathDetailsContent(impactPaths [][]formats.ComponentRow, fixed
777777
sort.Strings(transitiveEntries)
778778
allEntries := append(directEntries, transitiveEntries...)
779779

780-
for i := range allEntries {
781-
openingCount := strings.Count(allEntries[i], "<details>")
782-
closingCount := strings.Count(allEntries[i], "</details>")
783-
if openingCount > closingCount {
784-
for j := 0; j < openingCount-closingCount; j++ {
785-
allEntries[i] = allEntries[i] + "</details>"
786-
}
787-
} else if closingCount > openingCount {
788-
for j := 0; j < closingCount-openingCount; j++ {
789-
allEntries[i] = strings.TrimSuffix(allEntries[i], "</details>")
790-
}
791-
}
792-
}
793780
return strings.Join(allEntries, "")
794781
}
795782

0 commit comments

Comments
 (0)