Skip to content

Commit ac1a664

Browse files
committed
Refactor HandleFirstPartyVulnResult to simplify vulnerability mapping logic
Signed-off-by: Rafi <refaei.shikho@hotmail.com>
1 parent b4cb64b commit ac1a664

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

internal/core/assetversion/asset_version_service.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,8 @@ func (s *service) HandleFirstPartyVulnResult(asset models.Asset, assetVersion *m
169169
return 0, 0, []models.FirstPartyVuln{}, errors.Wrap(err, "could not convert snippet contents to JSON")
170170
}
171171

172-
firstPartyVulnerabilitiesMap[hash] = firstPartyVulnerability
173-
174172
}
175-
176-
fmt.Println("snip", snippetContent.Snippet)
173+
firstPartyVulnerabilitiesMap[hash] = firstPartyVulnerability
177174

178175
}
179176

0 commit comments

Comments
 (0)