mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
chore(deps): update Go version (#4798)
Signed-off-by: anchore-oss-update-bot <anchore-oss-update-bot@users.noreply.github.com> Co-authored-by: anchore-oss-update-bot <anchore-oss-update-bot@users.noreply.github.com>
This commit is contained in:
co-authored by
anchore-oss-update-bot
parent
89e4e609d5
commit
33bc4b8397
+1
-1
@@ -112,7 +112,7 @@ func Less(i, j Package) bool {
|
||||
jLocations := j.Locations.ToSlice()
|
||||
if i.Type == j.Type {
|
||||
maxLen := max(len(jLocations), len(iLocations))
|
||||
for l := 0; l < maxLen; l++ {
|
||||
for l := range maxLen {
|
||||
if len(iLocations) < l+1 || len(jLocations) < l+1 {
|
||||
if len(iLocations) == len(jLocations) {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user