Skip to content

Commit

Permalink
fix: full descriptions integration (Checkmarx#4126)
Browse files Browse the repository at this point in the history
Signed-off-by: Rogério Peixoto <[email protected]>
  • Loading branch information
rogeriopeixotocx authored Aug 30, 2021
1 parent b7e381a commit 552a905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/descriptions/descriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func RequestAndOverrideDescriptions(summary *model.Summary) error {
}

for idx := range summary.Queries {
if descriptionMap[summary.Queries[idx].DescriptionID].DescriptionID == "" {
if descriptionMap[summary.Queries[idx].DescriptionID].DescriptionID == "" &&
descriptionMap[summary.Queries[idx].DescriptionID].RationaleText == "" {
continue
}
descriptionID := summary.Queries[idx].DescriptionID
Expand Down

0 comments on commit 552a905

Please sign in to comment.