Skip to content

Commit

Permalink
Comment out the unused functions for now, they could still be useful.
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Feb 5, 2025
1 parent 8c9877e commit 5875aa0
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions internal/utility/vulns/vulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,25 @@ func rangeAffectsVersion(a []models.Range, pkg lockfile.PackageDetails) bool {
return false
}

func isAliasOfID(v models.Vulnerability, id string) bool {
for _, alias := range v.Aliases {
if alias == id {
return true
}
}

return false
}

func isAliasOf(v models.Vulnerability, vulnerability models.Vulnerability) bool {
for _, alias := range vulnerability.Aliases {
if v.ID == alias || isAliasOfID(v, alias) {
return true
}
}

return false
}
// func isAliasOfID(v models.Vulnerability, id string) bool {
// for _, alias := range v.Aliases {
// if alias == id {
// return true
// }
// }

// return false
// }

// func isAliasOf(v models.Vulnerability, vulnerability models.Vulnerability) bool {
// for _, alias := range vulnerability.Aliases {
// if v.ID == alias || isAliasOfID(v, alias) {
// return true
// }
// }

// return false
// }

func AffectsEcosystem(v models.Vulnerability, ecosystem lockfile.Ecosystem) bool {
for _, affected := range v.Affected {
Expand Down

0 comments on commit 5875aa0

Please sign in to comment.